From 62f1f57b922650fb49e256dcab099ef05ab8dbc2 Mon Sep 17 00:00:00 2001 From: SaintPeter Date: Mon, 28 Dec 2015 14:08:11 -0800 Subject: [PATCH] Fix Else If statement and chains closes #5489 closes #5489 --- .../basic-javascript.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index bba37ad339..bb297ee4d7 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -2895,7 +2895,8 @@ "description": [ "If you have multiple conditions that need to be addressed, you can chain if statements together with else if statements.", "
if (num > 15) {
return \"Bigger then 15\";
} else if (num < 5) {
return \"Smaller than 5\";
} else {
return \"Between 5 and 15\";
}
", - "

Instructions

Convert the logic to use else if statements." + "

Instructions

", + "Convert the logic to use else if statements." ], "releasedOn": "January 1, 2016", "tests": [ @@ -3277,7 +3278,7 @@ }, { "id": "56533eb9ac21ba0edf2244e0", - "title": "Replacing If Else chains with Switch", + "title": "Replacing If Else Chains with Switch", "description": [ "If you have many options to choose from, a switch statement can be easier to write than many chained if/if else statements. The following:", "
if(val === 1) {
answer = \"a\";
} else if(val === 2) {
answer = \"b\";
} else {
answer = \"c\";
}
",