Tuesday, April 20, 2010

Javascript FOR loop

A for loop in Javascript

A for loop in java or javascript is similar to a Java or C for loop

for(i = 0; i < 3; i++){

the variable i is the counter variable. It starts at 0. This loop runs, which will alert 0. Next it increments i, then returns to the start.

No comments:

Post a Comment