Run the Tests button

Run the Tests button
0

#1

Hi.

I’m on this challenge:

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements/

Unfortunately the Run the Tests button seems not to be working. I clicked it and it wouldn’t confirm that I’d passed all the challenges. Nor would it show any crosses for any challenges I didn’t pass. I’m using Chrome.

My code:

function caseInSwitch(val) {
  var answer = "";
  // Only change code below this line
  
  switch(val)
  {
    caseInSwitch(1):
      val = "alpha";
      break;
    caseInSwitch(2):
      val = "beta";
      break;
    caseInSwitch(3):
      val = "gamma";
      break;
    caseInSwitch(4):
      val = "delta";
  }
  
  // Only change code above this line  
  return answer;  
}

// Change this value to test
caseInSwitch(2);


#2

I’m on this challenge and I’m having the exact same problem as well: the Run Test button isn’t working under Chrome as well. No, I don’t want to use another browser, especially Firefox since FCC there causes massive slowdown.