let a = new Array(); let a = new Array; let a = []; // BESTThe last one is the most compact so I prefer it. If you want to create an array of known size, there is only one way:
let a = new Array(100);So this is when to use `new Array`.
let a = new Array(); let a = new Array; let a = []; // BESTThe last one is the most compact so I prefer it. If you want to create an array of known size, there is only one way:
let a = new Array(100);So this is when to use `new Array`.