Course Content
Introduction to JavaScript
continue
The continue
keyword skips the code below in a loop and starts the next iteration:
The example above shows that iterations of the loop where i < 5
was skipped.
Note
The
continue
keyword skips the code below inside the loop.
But for the example above, you can use the interval [5, 9] for the i
counter.
Let's look at the better example:
You can see that the end of 3rd iteration was skipped.
Note
The
continue
operator works like thebreak
but for one iteration only.
Section 5.
Chapter 7