There are many ways to create arrays. The most common are to use array literals, or the Array constructor:
var arr = [1, 2, 3, 4];
var arr2 = new Array(1, 2, 3, 4);
If the Array constructor is used with no arguments, an empty array is created.
var arr3 = new Array();
results in:
[]
Note...