From ffb13f6c3aab0a038005ef341e8e11d73905a8fc Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Mon, 28 Dec 2015 08:44:43 +0530 Subject: [PATCH] Multiple Identical Options in Switch Statements Fix FreeCodeCamp/FreeCodeCamp#5488 --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 217f823774..6736494d6b 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -3206,13 +3206,13 @@ "id": "56533eb9ac21ba0edf2244df", "title": "Multiple Identical Options in Switch Statements", "description": [ - "If the break statement is ommitted from a switch statement case, the following case statement(s) are executed unless a break is encountered. If you have mutiple inputs with the same output, you can represent them in a switch statement like this:", + "If the break statement is omitted from a switch statement case, the following case statement(s) are executed unless a break is encountered. If you have multiple inputs with the same output, you can represent them in a switch statement like this:", "
switch(val) {
case 1:
case 2:
case 3:
result = \"1, 2, or 3\";
break;
case 4:
result = \"4 alone\";
}
", "Cases for 1, 2, and 3 will all produce the same result.", "

Instructions

", "Write a switch statement to set answer for the following ranges:
1-3 - \"Low\"
4-6 - \"Mid\"
7-9 - \"High\"", "Note", - "You will need to have a case statement for each number in the range." + "You will need to have a case statement for each number in the range." ], "releasedOn": "January 1, 2016", "tests": [