Stuck on here pls anybody help

Stuck on here pls anybody help
0

#1

Tell us what’s happening:

Your code so far


function switchOfStuff(val) {
  var answer = "";
  // Only change code below this line
  
  
  
  // Only change code above this line  
  return answer;  
}

// Change this value to test
switchOfStuff(1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/adding-a-default-option-in-switch-statements


#2

Hey @sai143cool,
The challenge is about the switch statements.
The switch is a conditional statement like if statement. It executes a block of code depending on different cases.
This might be of some help.
https://www.w3schools.com/jsref/jsref_switch.asp
Try solving now.


#3

Could you provide more detail as to what you’re trying to do? There wasn’t any description of what the problem is.


#4

thanks it solved…:grinning: