Break and Continue in Loops

Alter loop iterations using break and continue statements.

Background

In this lesson, we will learn about the break and continue statements. These statements make it convenient for us to make alterations to iterations of the loop.

Introduction

In JavaScript loops, you can use statements to either skip an iteration or exit the loop using continue or break statements respectively.

Let’s take a look at each.

Continue statement

Get hands-on with 1200+ tech skills courses.