1. Technology
Definition: The for statement specifies a block of code that is to be run multiple times. The for statement contains three sub-statements that control the loop processing. The first statement is run once at the start and usually defines a loop counter. The second statement is the condition statement tested after each time through the loop. The third statement runs at the end of each time through the loop and is usually used to increment the loop counter. For is a reserved word and cannot be used for anything other than declaring a for loop.
for (var i = 0; i < 10; i++) {...}
  1. About.com
  2. Technology
  3. JavaScript

©2014 About.com. All rights reserved.