Event
noun
say it: “ih-VENT” /ɪˈvɛnt/
Something that happens on a web page, such as a click, a key press or a form being sent, that code can respond to.
What is Event in JavaScript?
Event — A member that lets an object notify subscribed code that something happened.
button.addEventListener("click", event => {
const clickedButton = event.target;
});
In a sentence
- “Each click is an event, and our listener reacts to it.”
Level: Journeyman · More JavaScript terms at this level
Updated