Switch with prompt (why my code doesn't work?)


#1

Hello. Please help: my code doesn't work (there is always "Try again":((

var user = prompt("Are you looking for a fashion dress?").toUpperCase();
switch(user){
case'Yes':
console.log("OO, that is a good news for me!");
break;
case'No':
console.log("OO, that is a bad news for me!");
break;
case'I don"t know':
console.log("Maybe you will be think?");
break;
default:
console.log("Try again!");
break;
}


#2

Oh, I have already fixed it:) Everything is working


#3

How did you fix it? I seem to have the same problem.