What does calling addEventLister twice do?
In your example, func will not be called twice on click, no; but keep reading for details and a “gotcha.” From addEventListener in the spec: If multiple identical EventListeners are registered on the same EventTarget with the same parameters the duplicate instances are discarded. They do not cause the EventListener to be called twice and … Read more