You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seed/challenges/01-front-end-development-certification/basic-javascript.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3639,8 +3639,8 @@
3639
3639
"function chainToSwitch(val) {\n var answer = \"\";\n\n switch (val) {\n case \"bob\":\n answer = \"Marley\";\n break;\n case 42:\n answer = \"The Answer\";\n break;\n case 1:\n answer = \"There is no #1\";\n break;\n case 99:\n answer = \"Missed me by this much!\";\n break;\n case 7:\n answer = \"Ate Nine\";\n }\n return answer; \n}"
3640
3640
],
3641
3641
"tests": [
3642
-
"assert(!/else/g.test(code), 'message: You should not use any <code>else</code> statements');",
3643
-
"assert(!/if/g.test(code), 'message: You should not use any <code>if</code> statements');",
3642
+
"assert(!/else/g.test(code), 'message: You should not use any <code>else</code> statements anywhere in the editor');",
3643
+
"assert(!/if/g.test(code), 'message: You should not use any <code>if</code> statements anywhere in the editor');",
3644
3644
"assert(code.match(/break/g).length >= 4, 'message: You should have at least four <code>break</code> statements');",
3645
3645
"assert(chainToSwitch(\"bob\") === \"Marley\", 'message: <code>chainToSwitch(\"bob\")</code> should be \"Marley\"');",
3646
3646
"assert(chainToSwitch(42) === \"The Answer\", 'message: <code>chainToSwitch(42)</code> should be \"The Answer\"');",
0 commit comments