dom events Flashcards

1
Q

Why do we log things to the console?

A

to debug

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

to make the page feel interactive

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

What do [] square brackets mean in function and method syntax documentation?

A

a boolean

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

addEventListener()

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

What is a callback function?

A

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 object is passed into an event listener callback when the event fires?

A

the first argument

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