---
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\". life is basically just one long string of decisions. if it’s raining, you grab an umbrella. if you’re tired, you drink chai. if your battery hits 5%, you panic and look for a charger.\nprogramming work"
url: "https://hashnode.com/posts/control-flow-in-javascript-if-else-and-switch-explained/69b6828f05c006164cff0604"
---

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

Discussion

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

life is basically just one long string of decisions. if it’s raining, you grab an umbrella. if you’re tired, you drink chai. if your battery hits 5%, you panic and look for a charger. programming work

Mar 15 · 3 min read · blogs.ygshjm.dev  
Read the article

-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#if-else](https://hashnode.com/tag/if-else)

## Written by

[Yogesh jamatia](https://hashnode.com/@jmtygsh)

@jmtygsh

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
