logo
logo

Click Counter

Beginner

Click Counter

Create a function that takes an element and logs the number of times it has been clicked. The function should return a cleanup function to remove the event listener.

Console
Submit
Solution
00:00