JS Basic Tutorial
JS Basic Dom
JS Reference
A for loop is used to run a block of code repeatedly for a specified number of times, based on a condition. It is one of the most common control structures in JavaScript.
for (initialization; condition; increment/decrement) { 
  // Code to execute 
}
false to terminate the loop).Try it yourself
Try it yourself
Try it yourself