-
-
Notifications
You must be signed in to change notification settings - Fork 44k
Bug: We really dont need 9 "case" here #12742
Copy link
Copy link
Closed
Labels
status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.Under discussion threads. Closed as stale after 60 days of inactivity.
Description
Challenge Name
https://www.freecodecamp.com/challenges/multiple-identical-options-in-switch-statements
Issue Description
Please see for passing test it is asking for 9 "Cases" which is not actually needed.
Browser Information
- Browser Name, Version:
- Operating System:
- Mobile, Desktop, or Tablet:
Your Code
function sequentialSizes(val) {
var answer = "";
// Only change code below this line
switch(true){
case val<=3 :answer="Low";break;
case val<=6:answer="Mid";break;
case val<=9:answer="High";break;
}
// Only change code above this line
return answer;
}
// Change this value to test
sequentialSizes(1);Screenshot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.Under discussion threads. Closed as stale after 60 days of inactivity.