dom-events Flashcards
1
Q
Why do we log things to the console?
A
working with the correct elements
2
Q
What is the purpose of events and event handling?
A
run blocks of codes based on things that happen on our webpage
3
Q
Are all possible parameters required to use a JavaScript method or function?
A
no, can pass a parameter but not use it
4
Q
What method of element objects lets you set up a function to be called when a specific type of event occurs?
A
5
Q
What is a callback function?
A
6
Q
What object is passed into an event listener callback when the event fires?
A
7
Q
What is the event.target? If you weren’t sure, how would you check? Where could you get more information about it?
A
8
Q
What is the difference between these two snippets of code?
A