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

The difference is subtle but essential to know.

Twan Mulder
DailyJS
Published in
4 min readNov 18, 2020

--

Events!

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

MDN defines an Event as:

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

--

--

Twan Mulder
DailyJS

Frontend Developer who loves creating enticing experiences | Employed at De Bijenkorf