From acc584a52f85924fe43aa218dea151c74e925d47 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Sun, 5 Jan 2020 06:21:06 +0300 Subject: [PATCH] if else if example fix --- 04_Day/04_day_conditionals.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/04_Day/04_day_conditionals.md b/04_Day/04_day_conditionals.md index e2a26a6a..05e2ded9 100644 --- a/04_Day/04_day_conditionals.md +++ b/04_Day/04_day_conditionals.md @@ -134,13 +134,13 @@ if (condition) { ```js let a = 0 if (a > 0) { - console.log(`A${a} is a positive number`) + console.log(`${a} is a positive number`) } else if (a < 0) { - print(`${a} is a negative number`) - else if (a == 0) { - print(` ${a} is zero`) + console.log(`${a} is a negative number`) +} else if (a == 0) { + console.log(`${a} is zero`) } else { - print('${a) is not a number') + console.log(`${a} is not a number`) } ``` @@ -309,4 +309,4 @@ isRaining 🎉 CONGRATULATIONS ! 🎉 -[<< Day 3](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/03_Day/03_day_booleans_operators_date.md) | [Day 5 >>](#) \ No newline at end of file +[<< Day 3](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/03_Day/03_day_booleans_operators_date.md) | [Day 5 >>](#)