is onclick an event listener?
Essentially onclick is a HTML attribute. Conversely addEventListener is a method on the DOM object representing a HTML element. In JavaScript objects, a method is merely a property that has a function as a value and that works against the object it is attached to (using this for example).