User Interface Expert Question:

Download Job Interview Questions and Answers PDF

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?

UI Developer Interview Question
UI Developer Interview Question

Answer:

var colors = ['red, 'yellow', 'green', 'blue'];
for( var i = 0; i < colors.length; i++ ){
console.log(colors[i]);
}

Download UI Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How to declare all elements with class of "blue-text" to have a text color of blue?What minimum things we have to do in order to include Bootstrap & Boostrap JS in a project/ HTML Document?