---
title: "Discussion on \"Control Flow in JavaScript —  Making Your Code Actually Think\" | Hashnode"
description: "Discussion on \"Control Flow in JavaScript —  Making Your Code Actually Think\". Ever wonder how a program decides what to do? Let me walk you through if, else, switch, and more — with real examples that make total sense."
url: "https://hashnode.com/posts/control-flow-in-javascript-making-your-code-actually-think/69b53654210c74252fdeb782"
---

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

Discussion

# [Control Flow in JavaScript — Making Your Code Actually Think](https://omkargupta.hashnode.dev/control-flow-in-javascript-making-your-code-actually-think?utm_source=hashnode&utm_medium=feed)

Ever wonder how a program decides what to do? Let me walk you through if, else, switch, and more — with real examples that make total sense.

Mar 14 · 9 min read · omkargupta.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js-conditional-statements](https://hashnode.com/tag/js-conditional-statements)
-   [#if-else](https://hashnode.com/tag/if-else)
-   [#switch](https://hashnode.com/tag/switch)
-   [#switch-case](https://hashnode.com/tag/switch-case)

## Written by

[Omkar Gupta](https://hashnode.com/@OmkarDevtsx)

@OmkarDevtsx

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
