Using the Array Object
Arrays are represented in JavaScript by the Array object. The Array object contains
a special constructor named Array() that provides another way to create an array.
A constructor is a special type of function that is used as the basis for creating reference
variables (that is, variables whose data type is the reference data type). You can create
new arrays with the Array() constructor by using the keyword new and the name of the
Array() constructor with the following syntax:
var arrayName = new Array(number of elements);
Within the parentheses of the
...more