javascript-dom-manipulation-1 Flashcards

1
Q

What is the primary advantage to storing your selected elements in a variable?

A

Reusing

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

Why might you need JavaScript to modify the DOM after the page loads?

A

Allowing user to interact with the site. Without dom manipulation you have a static read only site.

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

Why might you need JavaScript to modify the DOM after the page loads?

A

set id tags to allow yourself to target and manipulate those elements.

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