Array Values


Description
An array is a list-like data type. Neither the length of an array nor the types of its elements are fixed.

Arrays cannot use strings as element indexes, as opposed to an object, but must use integers.

When setting or accessing an array using bracket notation, the first element in an array is 0.
Example Code
var animals = ['Cat', 'Dog'] World.log(animals.length) // 2 var first = animals[0] // Cat var last = animals[animals.length - 1] // Dog