I've been coding for a week and I'm stuck on my online assigment where they want me to create a button that displays a text in console.log when I click on it. Been at it for 3 hours now checking different forums, youtube videos and topics but can't find a specific "simple" answer. Can anyone help me out?
function log() {
console.log('Clicked');
};
<button onclick="log()">Click me!</button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With