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}
1//create an array
2let numbers = [ 11 , 13 , 15 , 17]
3
4//you can use loop like this
5for(let i = 0;i<numbers.length;i++) {
6 console.log(numbers[i])
7}
1var colors = [ "red", "orange", "yellow", "green", "blue" ]; //Array
2
3console.log(colors); //Should give the whole array
4console.log(colors[0]); //should say "red"
5console.log(colors[1]); //should say "orange"
6console.log(colors[4]); //should say "blue"
7
8colors[4] = "dark blue" //changes "blue" value to "dark blue"
9console.log(colors[4]); //should say "dark blue"
10//I hope this helped :)