More practice with switch help


#1

SyntaxError: Unexpected string

Ive been reading it for half an hour I dont understand whats wrong help


var Steak = prompt("How did you want your steak cooked?");

switch(Steak) {
  case 'blue':
    console.log"(Allright");
    break;
  case 'rare':
    console.log("Cool");
    break;
  case 'medium':
    console.log("It will be perfect!");
    break;
  default:
    console.log("You will have to be more specific!")
};


#2

Your opening quotation mark here is outside the bracket.


#3

Thanks !!!!!!!!!!!!!!!!!!!!!!!!!!!!! -________________-


#4

You're welcome.

Have fun coding! :slight_smile:


#5

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