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 is now registered, if we click on it, the event handler is triggered which is
For example,
someButton.addEventListener("click", doSomething )someButton is now registered, if we click on it, the event handler is triggered which is
doSomething?