The e
parameter contains the Event Object
, passed to your event Handler function.
Inside the event object you'll find relevant data relative to the triggered event.
From MDN Web docs:
DOM Events are sent to notify code of interesting things that have
taken place. Each event is represented by an object which is based on
the Event interface, and may have additional custom fields and/or
functions used to get additional information about what happened.
Events can represent everything from basic user interactions to
automated notifications of things happening in the rendering model.
If we are talking about a click
event, for exampke, e.target
would be a reference to the DOM Element wich received the click. Wich corresponds in this case with the value of this
, inside the handler scope
You can find more information about Events here:
https://developer.mozilla.org/en-US/docs/Web/Events