The Array object has been used previously in the manual file. There are two types of arrays – typed and untyped (go to About Arrays for more information). The methods and properties here can be used on both types.
Untyped arrays can be declared as follows:
var arrayName = [value0, value1, …, valuen]or
var arrayName = new Array(value0, value1, …, valuen);or
var arrayName = new Array();or
var weekday = new Array(arrayLength);The Array Object has one property, the length of the array (number of items in the array):
arrayName.length