Code
var cool = new Array(3); cool[setAll] = 42; //cool[setAll] is just a pseudo selector.. alert(cool);
Result
It's 2019 and you should be using this:
let arr = [...Array(20)].fill(10)
So basically 20 is the length or a new instantiated Array.
20
length
Array