Why does min say illegal?!


#1

So i have no clue whats wrong with my code but it says "SyntaxError: Unexpected token ILLEGAL". Thanks for helping out.


#2

Hi Chris,

You'll need to post your code and a link to the exercise you're on for us to help you.
Thanks!


#3

var race = prompt("what race?")

switch(race) {
case 'korean':
console.log("good");
break;
case 'chinese':
console.log("good");
break;
case 'laos':
console.log("good");
break;
default: 'japanese'
console.log("everything seems to be perfect!');
}


#4

default: 'japanese'
console.log("everything seems to be perfect!');

get rid of the japanese after default...


#5

Your partially correct the 'japanese' is pointless here so you can get rid of it, but the error is that @corerockstar51358 you use " and ' in your console.log so the string stays open.