javascript array with loop code example
Example 1: for next loop javasxcrop
for (i = 0; i < 5; i++) {}
Example 2: javascript loop
var colors=["red","blue","green"];
for(let color of colors){
console.log(color)
}
for (i = 0; i < 5; i++) {}
var colors=["red","blue","green"];
for(let color of colors){
console.log(color)
}