for loop step js code example
Example 1: forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}
Example 2: javascript loop
var colors=["red","blue","green"];
for(let color of colors){
console.log(color)
}
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}
var colors=["red","blue","green"];
for(let color of colors){
console.log(color)
}