8/14


#1

Can't seem to find my mistake
// Write your code below!
var answer = prompt("Where do you come from?");

switch(answer){
case 'Egypt':
console.log("Ahlan Washalan!");
break;

case 'Germany':
    console.log("Guten Tag!");
    break;

case 'France':
    console.log("Bonjour!");
    break;

default;
console.log('Where did you say you came from ?');

};
and i keep getting:
SyntaxError: missing : after case label.

I'd be very happy if someone could go over my code and point it out for me :smile:


#2

deafult: instead of deafult;


#3

default is correct but you need : instead of ; after it.


#4

I think you are also missing a "break;" after default.


#5

As default is the last the break is rather optional as you break after default anyway.