It is and similarly to on it doesn’t just set event handler for the element, but with each call it adds a new one. As click was called in the function called after pressing button, with each press of the button additional event handler was added to the element.