javascript create array with numbers code example
Example 1: create array with number js
var foo = new Array(45); // create an empty array with length 45
Example 2: building an array of a numbers javascript
const arr = [...Array(2)] // output [undefined, undefined]