Dom -events Flashcards

1
Q

Why do we log things to the console?

A

to check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of events and event handling?

A

event handling triggers javascript code and things happen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Are all possible parameters required to use a JavaScript method or function?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What method of element objects lets you set up a function to be called when a specific type of event occurs?

A

.addEventListenser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a callback function?

A

is a function passed into another function as an argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the event.target? If you weren’t sure, how would you check? Where could you get more information about it?

A

element that you interacted with

How well did you know this?
1
Not at all
2
3
4
5
Perfectly