let array1 = [];
console.log(array1); // -> []
let array2 = new Array(1, 2);
console.log(array2); // -> [1, 2]
let array3 = new Array(3);
console.log(array3); //-> [undefined, undefined, undefined]
console.log(array3.length); //-> 3
let array4 = new Array(-1, -2);
console.log(array4); // -> [-1, -2]
let array5 = new Array(-3); //-> Uncaught RangeError: Invalid array length
JS-Arrayコンストラクタ
---------------
A [Pen](https://codepen.io/taquaki/pen/LOJEGj) by [Takaaki Sato](https://codepen.io/taquaki) on [CodePen](https://codepen.io).
[License](https://codepen.io/taquaki/pen/LOJEGj/license).