Previous Topic: The for/in Loop StatementNext Topic: The continue Statement


The break Statement

The break statement can be used to exit out of a loop, as illustrated in the following lines of code.

var l = 0;
while (l < 10) {
	n = n++;
	if (n > 102)
		break;
}