Basic JavaScript: Multiple Identical Options in Switch Statements

EMBED

Sat Sep 24 2022 20:53:21 GMT+0000 (Coordinated Universal Time)

Saved by @chymax030 #javascript


function sequentialSizes(val) { let answer = ""; // Only change code below this line switch (val) { case 1: case 2: case 3: return "Low"; break; case 4: case 5: case 6: return "Mid"; break; case 7: case 8: case 9: return "High"; break; } // Only change code above this line return answer; } sequentialSizes(1);

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/multiple-identical-options-in-switch-statements