August 1999
Intermediate to advanced
1488 pages
72h 53m
English
var variable = new Array() var variable = new Array(int) var variable = new Array(arg1, …, argN)
Although arrays can be created with the basic JavaScript object, the Array object provides a much easier way to create and manage arrays.
Table 6.7 lists the argument and return values associated with this object's constructors. These constructors create a new array and, in two cases, initialize the Array object based on the arguments passed in the parameter list. The constructor that has no arguments sets the length property to 0.
| Type | Item | Description |
|---|---|---|
| Arguments |
Read now
Unlock full access