Reference Data Types 2 Flashcards
1
Q
What is an array in JavaScript?
A
a list of items, data.
2
Q
How do you create an array literal? var array = [];
A
var array = [];
3
Q
What are the keys for the values inside an array?
A
index number
4
Q
Arrays have a property named length. Because arrays have a properties, what other data structure are they similar to?
A
objects