1//create an array like so:
2var colors = ["red","blue","green"];
3
4//you can loop through an array like this:
5for (var i = 0; i < colors.length; i++) {
6 console.log(colors[i]);
7}
1var array = [item1, item2, .....];
2/*
3
4 item1 and item2 could be a string (which is
5 a letter written in double or single quotes like this "string" or 'string') or
6 a number (which is just a normal number on the keypad) or a boolean (which is
7 an experssion which either returns to true of false) and the ..... means that
8 the inputs can be infinite.
9
10*/
1// Don't need to provide elements directly, but you can
2
3// FIRST OPTION
4var myArray = new Array(/*elements1, elements2*/);
5
6// SECOND OPTION
7var mySecondArray = [/*element1, element2*/];
1let arr = new Array(element0, element1, ..., elementN)
2let arr = Array(element0, element1, ..., elementN)
3let arr = [element0, element1, ..., elementN]
4