JavaScript Tutorial

Continue Statement

Skips the current iteration of a loop and continues with the next one.

for (let i = 0; i < 5; i++) {
  if (i === 2) continue;
  console.log(i); // 0, 1, 3, 4
}