Break and Continue
break and continue give you more control over loop execution.
break - Exit the Loop
Loading JavaScript Playground...
continue - Skip to Next Iteration
Loading JavaScript Playground...
Practical Examples
Loading JavaScript Playground...
break in while Loops
Loading JavaScript Playground...
Nested Loop Control
Loading JavaScript Playground...
Exercise: Find First
Find the first number divisible by 7:
Loading JavaScript Exercise...
Exercise: Skip Multiples
Print numbers 1-10, skipping multiples of 3:
Loading JavaScript Exercise...
Up next · Lesson 19 of 37
Function Basics
1 min read
18 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

