continue
Skips to the next pass of the loop.
What does continue do in JavaScript?
continue — Skips to the next pass of the loop.
for (const number of numbers) {
if (number % 2 === 0) {
continue;
}
firstOdd = number;
break;
}
Level: Apprentice · More JavaScript terms at this level
Updated