From 187d4249fd4968819ba1997556610ac96fc7554e Mon Sep 17 00:00:00 2001 From: JamesWorsnop Date: Mon, 27 Jun 2016 22:02:37 +0900 Subject: [PATCH] Fixing if/if else text in replacing if else chains with switch challenge --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 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 0de5970ca9b..90454cbd692 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -3602,12 +3602,12 @@ "id": "56533eb9ac21ba0edf2244e0", "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 you have many options to choose from, a switch statement can be easier to write than many chained if/else if statements. The following:", "
if (val === 1) {
answer = \"a\";
} else if (val === 2) {
answer = \"b\";
} else {
answer = \"c\";
}
", "can be replaced with:", "
switch (val) {
case 1:
answer = \"a\";
break;
case 2:
answer = \"b\";
break;
default:
answer = \"c\";
}
", "

Instructions

", - "Change the chained if/if else statements into a switch statement." + "Change the chained if/else if statements into a switch statement." ], "releasedOn": "January 1, 2016", "challengeSeed": [