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 ".
pull/734/head
HARSH SHARMA 3 years ago committed by GitHub
parent 7fc6e874ee
commit 811c9291a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save