---
title: "Discussion on \"Control Flow in JavaScript: If, Else, and Switch\" | Hashnode"
description: "Discussion on \"Control Flow in JavaScript: If, Else, and Switch\". Everything is not availale for everyone.\nControl Flow: The order in which code runs based on the conditions.Instead of code run all line by line it has to ignore some lines through some coditions.\nUse"
url: "https://hashnode.com/posts/control-flow-in-javascript-if-else-and-switch/69f58095ec32cba9e5aa690a"
---

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

Discussion

# [Control Flow in JavaScript: If, Else, and Switch](https://blog.dubeyjags.cloud/control-flow-in-javascript-if-else-and-switch?utm_source=hashnode&utm_medium=feed)

Everything is not availale for everyone. Control Flow: The order in which code runs based on the conditions.Instead of code run all line by line it has to ignore some lines through some coditions. Use

May 2 · 3 min read · blog.dubeyjags.cloud  
Read the article

-   [#control-flow](https://hashnode.com/tag/control-flow)
-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#if-else](https://hashnode.com/tag/if-else)
-   [#switch](https://hashnode.com/tag/switch)

## Written by

[Jags Dubey](https://hashnode.com/@dubeyjags)

@dubeyjags

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

leaning new things

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
