Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’6mo agoβ€’
17 replies
Faker

event handler vs event listener in JS

Hello, quick clarification, an event handler is the action that happens when a registered event has been triggered? An event listener is the thing that registers an event?

For example, someButton.addEventListener("click", doSomething )

someButton is now registered, if we click on it, the event handler is triggered which is doSomething?
Was this page helpful?