Visit Mozilla.org

Core JavaScript 1.5 Guide:Loop Statements

From MDC


[edit] Loop Statements

A loop is a set of commands that executes repeatedly until a specified condition is met. JavaScript supports the for, do while, and while loop statements, as well as label (label is not itself a looping statement, but is frequently used with these statements). In addition, you can use the break and continue statements within loop statements.

Another statement, for...in, executes statements repeatedly but is used for object manipulation. See Object Manipulation Statements.

The loop statements are:

« Previous Next »