Dom-Events Flashcards
Why do we log things to the console?
easier to debug
What is the purpose of events and event handling?
Respond to what users do on a page
What do [] square brackets mean in function and method syntax documentation?
order in which events fire
What method of element objects lets you set up a function to be called when a specific type of event occurs?
eventTargetMethod
What is a callback function?
a function that takes another function as an argument
What object is passed into an event listener callback when the event fires?
the event object
What is the event.target? If you weren’t sure, how would you check? Where could you get more information about it?
reference to the object which the event was dispatched on, (check MDN) if need more info