August 1999
Intermediate to advanced
1488 pages
72h 53m
English
for( [initial statement;] [condition;] [num;]){ code; }
The for keyword is used to create a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a block of statements executed in the loop.
The initial statement is a JavaScript statement or variable declaration. The condition is an optional statement which is evaluated through each iteration of the loop. If condition is satisfied, all statements contained in the loop are executed. num designates if the loop increments or decrements every loop iteration. And finally, the code contains JavaScript statements that are executed each ...
Read now
Unlock full access