continue
JavaScript 1.1+, ECMAScript 1.0+, JScript 3.0+ Nav3+, IE 4+, Opera3+ Syntax
continue label;
Description
The continue statement forces the execution of the code within a loop to continue at the beginning of the loop. Normally, the continue keyword appears on a line by itself, but there are times when a label will follow the keyword (see Table 6.22). When a label is used, code execution immediately jumps to the beginning of the loop designated by the label and begins executing code.
Type | Item | Description |
---|---|---|
Argument | label | A label that designates code to execute. |
The beginning of a loop varies depending on the type of loop structure. Table 6.23 shows where each looping structure ...
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.