---
title: "Discussion on \"Break and Continue in Javascript loops\" | Hashnode"
description: "Discussion on \"Break and Continue in Javascript loops\". The break statement \"jumps out\" of a loop and break any further execution of the loop.\nfor (let i = 0; i < 10; i++) {\n  if (i === 3) { break; }\n  console.log(i);\n} \n\n// 0, 1, 2\nThe continue statement \"jumps over\" one iteration in the loop.\nfor (let i..."
url: "https://hashnode.com/posts/break-and-continue-in-javascript-loops/616e861841c1b75f924d8bae"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Break and Continue in Javascript loops](https://plasebo.hashnode.dev/break-and-continue-in-javascript-loops?utm_source=hashnode&utm_medium=feed)

The break statement "jumps out" of a loop and break any further execution of the loop. for (let i = 0; i < 10; i++) { if (i === 3) { break; } console.log(i); } // 0, 1, 2 The continue statement "jumps over" one iteration in the loop. for (let i...

Oct 19, 2021 · 1 min read · plasebo.hashnode.dev  
Updated Oct 20, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Shane Plasebo](https://hashnode.com/@Plasebo)

@Plasebo · Moka, Mauritius

  
[View profile](https://hashnode.com/@Plasebo)

## Responses 1

Markdown supported · ⌘↵ to post

No responses yet.
