Implemented in | Navigator 2.0 |
for ([initial-expression;] [condition;] [increment-expression]) {
statements
}
for
statement starts by declaring the variable i
and initializing it to 0. It checks that i
is less than nine, performs the two succeeding statements, and increments i
by 1 after each pass through the loop.for (var i = 0; i < 9; i++) {
n += i
myfunc(n)
}
Last Updated: 10/31/97 12:29:59