Source @ github

continue

continue – Continue the code execution at a different point. If a label is passed, it will continue at the label. If in a loop, it will jump to the next iteration.

Description

continue [label label]

Parameters

Name Description Type Default Optional
label label Yes

Examples

Example #1 – continue example

Skipping iteration in a loop.

var i = 1; while (i <= 5) { if (i === 3) { // Skipping iteration 3. i++; continue; } console.log('Running iteration: ' + i); i++; }

External references