Selecting options with Switch statements issue

I am trying to work on this exercise, but when I run the tests, nothing happens, as if the button doesn’t work. I actually went and copied the code from the answer in the hint, and still, nothing happens. Is this a glitch in the website? I don’t think this has happened before, so I’m not sure what’s going on.

Can you post the code you are trying and a link to the challenge?

1 Like
function caseInSwitch(val) {
  let answer = "";
  // Only change code below this line
  switch (val) {
    case 1:
      answer = "alpha";
    case 2:
      answer = "beta";
    case 3:
      answer = "gamma";
    case 4:
      answer = "delta";

  // Only change code above this line
  return answer;


Yes, it passes for me.

Do other challenges work for you? Try rebooting, clearing the browser cache, trying a different browser.

It works now. I think I just closed out and reopened the browser

Yeah, when things aren’t working for me at work, sometimes I just reboot.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.