Break vs Continue
Multiple Choice Easy
Question
What does continue do inside a loop?
Hint
break exits; continue skips.
Explanation
The continue statement skips the remaining code in the current iteration and jumps to the next iteration of the loop. break, by contrast, exits the loop entirely. For example, in a loop over numbers, continue can skip odd numbers while break would stop at the first odd number.
Related Resources
Related Lessons
- Loops (for & while)
Learn how for and while loops work.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.