I can't see the problem with my code, it's not working ;( I'm such an amateur!


#1

var answer = prompt("Hello How are you?");

switch(answer) {
case 'Hi':
console.log("hello how are you!");
break;
case 'Hello';
console.log("I know you!");
break;
default:
console.log("I haven't met you before");

};


#2

I believe you're having problems with the "default" statement yes?

So try adding a "break" at the end of your default statement and you should be good to go!


#3

You have semicolon ";" instead ":" in case 'Hello'