make a new array in javascript code example
Example 1: javascript array
const arr = [1, 2, 3];
Example 2: create array with number js
var foo = new Array(45); // create an empty array with length 45
const arr = [1, 2, 3];
var foo = new Array(45); // create an empty array with length 45