Answers

Question and Answer:

  Home  UI Developer

⟩ Loop through the color array and print each value to the console. Assume you do not know the amount of colors in the color array?

var colors = ['red, 'yellow', 'green', 'blue'];

for( var i = 0; i < colors.length; i++ ){

console.log(colors[i]);

}

 196 views

More Questions for you: