I was told that the "event object" is passed as a function parameter in the program below. What could be an example of an “event object”? Is this, for example, an element <p>if you clicked on <p>or <html>, if you clicked on <html>, or is this an actual 'click' event object?
document.addEventListener('click', function(e){
console.log(e.target.nodeName);
},false);
source
share