Dom Manipulation 1 Flashcards

1
Q

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

A

you just have to serch for the element once

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

user interaction

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

How can you better prepare when writing HTML for DOM manipulation in your JavaScript code?

A

write clear class, id, attrubute names

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