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 Answer UI Developer Interview Question](https://globalguideline.com/public/images/interview/2.png)
Answer:
var colors = ['red, 'yellow', 'green', 'blue'];
for( var i = 0; i < colors.length; i++ ){
console.log(colors[i]);
}
for( var i = 0; i < colors.length; i++ ){
console.log(colors[i]);
}
Download UI Developer Interview Questions And Answers
PDF