From 3e2fd9d655e8a6292d5255dc05a96fd956efafb1 Mon Sep 17 00:00:00 2001 From: a2937 Date: Mon, 27 Feb 2023 19:15:38 -0500 Subject: [PATCH] fix(cirriculum): adjust wording of error messages in "replacing-if-else-chains-with-switch" (#49520) Adjust switch statement error message wording. --- .../replacing-if-else-chains-with-switch.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md index d92eb3e52e6..b43ee5c811a 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md @@ -60,43 +60,43 @@ You should have at least four `break` statements assert(code.match(/break/g).length >= 4); ``` -`chainToSwitch("bob")` should be the string `Marley` +`chainToSwitch("bob")` should return the string `Marley` ```js assert(chainToSwitch('bob') === 'Marley'); ``` -`chainToSwitch(42)` should be the string `The Answer` +`chainToSwitch(42)` should return the string `The Answer` ```js assert(chainToSwitch(42) === 'The Answer'); ``` -`chainToSwitch(1)` should be the string `There is no #1` +`chainToSwitch(1)` should return the string `There is no #1` ```js assert(chainToSwitch(1) === 'There is no #1'); ``` -`chainToSwitch(99)` should be the string `Missed me by this much!` +`chainToSwitch(99)` should return the string `Missed me by this much!` ```js assert(chainToSwitch(99) === 'Missed me by this much!'); ``` -`chainToSwitch(7)` should be the string `Ate Nine` +`chainToSwitch(7)` should return the string `Ate Nine` ```js assert(chainToSwitch(7) === 'Ate Nine'); ``` -`chainToSwitch("John")` should be `""` (empty string) +`chainToSwitch("John")` should return `""` (empty string) ```js assert(chainToSwitch('John') === ''); ``` -`chainToSwitch(156)` should be `""` (empty string) +`chainToSwitch(156)` should return `""` (empty string) ```js assert(chainToSwitch(156) === '');