The following are equivalent:
var arr = new Array(0, 1, 2, 3);
var arr = Array(0, 1, 2, 3);
var arr = [0, 1, 2, 3]; // If single Number value, bracket syntax is required
Properties:
length
: arr.length
or arr['length']
Methods:
arr.forEach(n => console.log(n));