How to pass a non-event argument addEventListender

I think my code is pretty self-explanatory. Every time I click, I want the page to create an alert of how many times I've clicked somewhere on the element. However, the code instead alerts me to a [mouseObject]. Is there a way to pass anything other than event arguments when using addEventListener?

You are viewing a single comment. View All

dont provide the timesClicked argument in the function

like this: