In the browser, when you call button.addEventListener it probably maps to a similar system