for loop javascript in array code example
Example: loop array in javascript
var colors = ["red", "green", "blue"];
for(var i = 0; i < colors.length; i++){
console.log(colors[i]);
}
var colors = ["red", "green", "blue"];
for(var i = 0; i < colors.length; i++){
console.log(colors[i]);
}