---
title: "Discussion on \"Why Your switch Runs Three Cases: break Explained\" | Hashnode"
description: "Discussion on \"Why Your switch Runs Three Cases: break Explained\". Control flow in JavaScript, from if and else to else if ladders and switch, with step-by-step traces and real output"
url: "https://hashnode.com/posts/javascript-control-flow/6b055999c4b0bd6db8257722"
---

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

Discussion

# [Why Your switch Runs Three Cases: break Explained](https://jaydeepkanzariya.hashnode.dev/javascript-control-flow?utm_source=hashnode&utm_medium=feed)

Control flow in JavaScript, from if and else to else if ladders and switch, with step-by-step traces and real output

2d ago · 9 min read · jaydeepkanzariya.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Jaydeep Kanzariya](https://hashnode.com/@jaydeepkanzariya)

@jaydeepkanzariya · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
