---
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\". Introduction\nEvery day, we make decisions based on conditions:\n\nIf it is raining, carry an umbrella.\n\nIf your exam score is above 90, you get an A grade.\n\nIf today is Sunday, you can relax.\n\n\nComputer"
url: "https://hashnode.com/posts/control-flow-in-javascript-if-else-and-switch-explained/6a36af0f1062bd6e95bec44a"
---

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

Discussion

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

Introduction Every day, we make decisions based on conditions: If it is raining, carry an umbrella. If your exam score is above 90, you get an A grade. If today is Sunday, you can relax. Computer

Jun 20 · 7 min read · js-foundation.hashnode.dev  
Read the article

## Written by

[Ansuman Sutar](https://hashnode.com/@Ansuman7)

@Ansuman7 · Odisha, India

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

Keep learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
