The continue
statement terminates the currently running instance of loop, and moves forward to the next iteration.
continue
for (let i = 0; i < 10; i++) {
if (i === 3) {
continue;
}
console.log(i);
}
/* Prints:
0
1
2
4
5
6
7
8
9
*/
The continue
statement is not commonly used, unlike its counterpart break.