From 811c9291a39c9af4eb8e036c62571da24d975525 Mon Sep 17 00:00:00 2001 From: HARSH SHARMA <69196581+devharsh007@users.noreply.github.com> Date: Wed, 29 Mar 2023 01:12:40 +0530 Subject: [PATCH] Update 04_day_conditionals.md Found a mistake just making it right. changing "if else if else else" to "if else if else if else ". --- 04_Day_Conditionals/04_day_conditionals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04_Day_Conditionals/04_day_conditionals.md b/04_Day_Conditionals/04_day_conditionals.md index 0100844..18c3799 100644 --- a/04_Day_Conditionals/04_day_conditionals.md +++ b/04_Day_Conditionals/04_day_conditionals.md @@ -177,7 +177,7 @@ if (weather === 'rainy') { ### Switch -Switch is an alternative for **if else if else else**. +Switch is an alternative for **if else if else if else**. The switch statement starts with a *switch* keyword followed by a parenthesis and code block. Inside the code block we will have different cases. Case block runs if the value in the switch statement parenthesis matches with the case value. The break statement is to terminate execution so the code execution does not go down after the condition is satisfied. The default block runs if all the cases don't satisfy the condition. ```js