Switch


#1

I get a syntax error, missing a "(" but I don't see where. Any ideas?

var answer = prompt("Add your question here!");

switch(answer) {
  case 'yes':
    console.log("that's right");
    break;
  case 'no':
      console.log("right again");
       break;
default:
         console.log(you're still right");
};

OK I tried the newer way of pasting code.


#2

On this line:

You wrote:

console.log(you're still right");

instead of

console.log("you're still right");

You forgot your double quote.


#3

Thank you so much. After checking semicolons, brackets, etc this stuff just drives me nuts. I wonder if programmers at work have colleagues proof read when they just can't find a simple error?
:dizzy_face: