---
title: "Discussion on \"Switch statement in JavaScript\" | Hashnode"
description: "Discussion on \"Switch statement in JavaScript\". When is comes to controlling the flow of a particular program with making decision, there are typically two options we have:\n\nif…else\nswitch case\n\nIn our previous article we had covered everything you need to know about the if..else in JavaScript. He..."
url: "https://hashnode.com/posts/switch-statement-in-javascript/62188a593b11209c8fb4f14d"
---

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

Discussion

# [Switch statement in JavaScript](https://sarveshprajapati.hashnode.dev/switch-statement-in-javascript?utm_source=hashnode&utm_medium=feed)

When is comes to controlling the flow of a particular program with making decision, there are typically two options we have: if…else switch case In our previous article we had covered everything you need to know about the if..else in JavaScript. He...

Feb 25, 2022 · 4 min read · sarveshprajapati.hashnode.dev  
Read the article

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

## Written by

[Sarvesh Prajapati](https://hashnode.com/@sarveshprajapati)

@sarveshprajapati · India

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

Owner & Creator @WithinBracket.com. Twitter @iamthesarvesh

Owner &amp; Creator @WithinBracket.com. Twitter @iamthesarvesh

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
