javascript-dom-2 Flashcards

1
Q

Why is using loops and arrays for creating multiple dom elements preferable to creating them one at a time?

A

to save time.

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

Why are arrays preferred over objects for the functionality referenced in question 1?

A

arrays can be indexed,

objects cannot

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