The 'event' Argument - jpjohnsonjr/learning-notes GitHub Wiki
About
Argument passed in every event: event. Logging an event will reveal the kind of object that the event is. For example, MouseEvent will contain a large number of properties, including coordinates on the screen where pointer is, shift key status, path across the screen. See the event page for Mozilla developers.
Example
function(event) {
console.log(event.clientX);
console.log(event.clientY);
}
This is an event log that will track where the mouse is on the screen.