---
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.\". Every program needs the ability to make decisions. Sometimes the program must run one block of code, and sometimes another. This decision-making process is called control flow. In JavaScript, we contr"
url: "https://hashnode.com/posts/control-flow-in-javascript-if-else-and-switch-explained/69b6f76ff4eb2f8b04c72c69"
---

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

Discussion

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

Every program needs the ability to make decisions. Sometimes the program must run one block of code, and sometimes another. This decision-making process is called control flow. In JavaScript, we contr

Mar 15 · 3 min read · swwitchjs.hashnode.dev  
Read the article

-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#code](https://hashnode.com/tag/code)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#hiteshchoudharylco](https://hashnode.com/tag/hiteshchoudharylco)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Hammad Raza](https://hashnode.com/@Muhammad-Hammad12)

@Muhammad-Hammad12

  
[View profile](https://hashnode.com/@Muhammad-Hammad12)

Coder

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
