0
Q:

for i

var colors=["red","blue","green"];
for (let i = 0; i < colors.length; i++) { 
  console.log(colors[i]);
}
82
for (var i; i < 10; i++) {
  
}
13

for (i = 0; i < 5; i++) {

   text += "The number is " + i + "<br>";

}

  
5
# For loops in Dip

for i = 0 to 5 then print(i)
1


for (statement 1; statement 2; statement 3) {

      // code block to be executed

 }

 
2

New to Communities?

Join the community