Coding Challenge #1: Counting Clicks

Let's cover an exercise related to mouse events, see if you can solve it on your own!

We'll cover the following

Problem statement

Start with the following HTML content and write the JavaScript code that counts the number of clicks on the myButton button by updating the clickCount element. The deactivate button stops the counting.

If you get stuck, you can refer to the given solution!

Get hands-on with 1200+ tech skills courses.