What’s the difference between Event Handlers & addEventListener in JS?

The difference is subtle but essential to know.

Twan Mulder
Nov 18, 2020 · 4 min read

Events!

An important way of making your website actually “do stuff”.

MDN defines an Event as:

“The interface represents an event which takes place in the DOM.”