---
title: "Discussion on \"Control Flow: How JavaScript Makes Decisions (Just Like You Do)\" | Hashnode"
description: "Discussion on \"Control Flow: How JavaScript Makes Decisions (Just Like You Do)\". Think about the last time you stood in front of a Vending Machine. You looked at the snacks, checked the price in your pocket, and pressed a button.\n\nIf you had enough money, you got the snack.\n\nElse,"
url: "https://hashnode.com/posts/control-flow-how-javascript-makes-decisions-just-like-you-do/69b514c3210c74252fcea352"
---

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

Discussion

# [Control Flow: How JavaScript Makes Decisions (Just Like You Do)](https://the-beginners-guide-to-curl.hashnode.dev/control-flow-how-javascript-makes-decisions-just-like-you-do?utm_source=hashnode&utm_medium=feed)

Think about the last time you stood in front of a Vending Machine. You looked at the snacks, checked the price in your pocket, and pressed a button. If you had enough money, you got the snack. Else,

Mar 14 · 4 min read · the-beginners-guide-to-curl.hashnode.dev  
Read the article

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

## Written by

[Saurabh Jagtap](https://hashnode.com/@saurabh004)

@saurabh004

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
