---
title: "Discussion on \"`break` vs `continue` vs `return` in JavaScript — When to Use What?\" | Hashnode"
description: "Discussion on \"`break` vs `continue` vs `return` in JavaScript — When to Use What?\". `continue`, `break`, or `return`? One of the most common sources of subtle JS bugs is using the wrong one. Here's a visual guide that finally makes it click — with real-world examples and a decision tree."
url: "https://hashnode.com/posts/break-vs-continue-vs-return-in-javascript-when-to-use-what/6a05c727baf09db7a6fec4cb"
---

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

Discussion

# [\`break\` vs \`continue\` vs \`return\` in JavaScript — When to Use What?](https://blogs.arunkumarvelu.com/break-vs-continue-vs-return-in-javascript-when-to-use-what?utm_source=hashnode&utm_medium=feed)

\`continue\`, \`break\`, or \`return\`? One of the most common sources of subtle JS bugs is using the wrong one. Here's a visual guide that finally makes it click — with real-world examples and a decision tree.

May 14 · 14 min read · blogs.arunkumarvelu.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming](https://hashnode.com/tag/programming)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Arun kumar Velu](https://hashnode.com/@arunkumarvelu)

@arunkumarvelu · Chennai, India

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

#web\_engineer, #frontend

I love to do stuff in web

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
