ignis
0
Q:

html loop through array

var colors = ["red","blue","green"];
for (var i = 0; i < colors.length; i++) {
    console.log(colors[i]);
}
27
for (initialization; test condition; iteration statement) {
   Statement(s) to be executed if test condition is true
}
0

New to Communities?

Join the community