---
title: "Discussion on \"Control Flow in JavaScript: If, Else, and Switch Explained\" | Hashnode"
description: "Discussion on \"Control Flow in JavaScript: If, Else, and Switch Explained\". In programming, our code often needs to make decisions.\nFor example:\n\nIf it rains → take an umbrella\n\nIf marks are above 90 → grade A\n\nIf today is Sunday → relax\n\n\nThis type of decision-making in prog"
url: "https://hashnode.com/posts/control-flow-in-javascript-if-else-and-switch-explained/69b6603834db550e2c52af27"
---

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

Discussion

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

In programming, our code often needs to make decisions. For example: If it rains → take an umbrella If marks are above 90 → grade A If today is Sunday → relax This type of decision-making in prog

Mar 15 · 4 min read · leanwithpankaj.hashnode.dev  
Read the article

-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#consditionalinjs](https://hashnode.com/tag/consditionalinjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#if-else](https://hashnode.com/tag/if-else)

## Written by

[Pankaj kumar](https://hashnode.com/@pankaj4391)

@pankaj4391

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
