Level 63 Level 65
Level 64

Arrays


10 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
Array
a special variable, which can hold more than one value at a time
var arrayName = [a, b, c ];
Creating an Array
arrayName[x];
Access the Elements of an Array
arrayName[0];
the value of the first element in an array
arrayName[x] = "new";
changes the value of an element of an Array
typeof arrayName; // returns object
Type of an Array
arrayName.length;
returns the length of an array (the number of array elements)
arrayName.push(new);
Adding a New element to an array (at the end)
var arrayName = [];
create a new empty array
Array.isArray(arrayName);
How to Recognize an Array