javascript what is an array code example
Example 1: what are the two ways to create an array in javascript examples?
let scores = Array(10);
Example 2: create array with number js
var foo = new Array(45); // create an empty array with length 45
Example 3: array in js
function Array() { return []; }
alert(Array(1, 2, 3)); // An empty alert box
Example 4: array in js
var array_name = [item1, item2, ...];
//Used to store more than 1 items