Changes

Jump to: navigation, search

JavaScript Flow Control and Looping

5 bytes added, 19:34, 23 April 2007
JavaScript ''for'' loops
}
The ''initializer'' typically initializes a counter variable. Traditionally the variable ''i'' is used for this purpose. For example:
i = 0
which sets the counter to be the value ''i '' and sets it to zero.
The ''conditional expression'' specifies the test to perform to verify whether the loop has been performed the required number of times. For example, if we want to loop 100 times:

Navigation menu