1. Home
  2. Javascript
  3. For loop

Loop though the code number of times defined in the "for" block.

#javascript#loop
for (var i = 0; i < 10; i++) {
    console.log("Value of i = " + i);
}
copy
Full Javascript cheatsheet