🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to JavaScript Notes
Topic #27

JS Continue

The Continue Statement

The continue statement skips the current iteration in a loop.

The remaining code in the iteration is skipped and processing moves to the next iteration.

Example

for (let i = 1; i < 10; i++) {

    if (i === 3) { continue; }

    text += "The number is " + i + "<br>";

}

JavaScript Labels

A label provides a name for a statement, or a block of statements, allowing statements to be referenced to, for program flow control, particularly in loops.

Syntax

labelname: statement;

Continue to Labelname

Syntax

continue labelname;

Example

let text = "";

loop1: for (let j = 1; j < 5; j++) {

  loop2: for (let i = 1; i < 5; i++) {

    if (i === 3) { continue loop1; }

    text += i;

    }

}

Example

let text = "";

loop1: for (let j = 1; j < 5; j++) {

  loop2: for (let i = 1; i < 5; i++) {

    if (i === 3) { continue loop2; }

    text += i;

    }

}

Note: break and continue are the only JavaScript statements that can "jump out of" a code block.

Want to go beyond the notes?

Join CodingNow 2.0's JavaScript course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

JS Continue – FAQs

Quick answers about learning JS Continue in JavaScript.

This free note from CodingNow 2.0 explains JS Continue in JavaScript — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every JavaScript topic on CodingNow 2.0, including JS Continue, is 100% free with no signup required.
With focused practice, most students grasp JS Continue in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now