Mid JavaScript

How do you handle events?

button.addEventListener('click', () => console.log('Clicked!'));

More from JavaScript Tutorial

All questions for this course