/*
* `e` is often the name given to the parameter passed
* into the callback function of an event listener ('e'
* being short for 'event'). `e` enables access to
* information about an event.
*/
element.addEventListener("eventname", function(e) {
console.log(e.type);
});