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.
2
Q
Why are arrays preferred over objects for the functionality referenced in question 1?
A
arrays can be indexed,
objects cannot