5/6 I'm lost


#1

var user = prompt("What do you want to do?").toUpperCase();
switch(user) {
case 'RAZZLE DAZZLE':
console.log("But we heard a noise outside, Still want to?");
if(user > 1) {
Console.log("Okay good!");
}
else {
console.log("Wimp!");
break;
}
case 'SLEEP':
console.log("You've died in your sleep.");
break;
case 'NOTHING':
console.log("I like your style!");
break;
default:
console.log("Forget that. Let's go to TacoBell!");
};
Can anyone tell me if I'm missing anything or need to add something! Please.


#2

What are you trying to do with the if statement in the first case? You're prompting the user for a string value, however, in your if statement you're using an integer.

Without the if statement, this code should work.

var user = prompt("What do you want to do?").toUpperCase();

switch(user) {
    case 'RAZZLE DAZZLE':
        console.log("But we heard a noise outside, Still want to?");
    break;
    
    case 'SLEEP':
        console.log("You've died in your sleep.");
    break;
    
    case 'NOTHING':
        console.log("I like your style!");
    break;

    default:
        console.log("Forget that. Let's go to TacoBell!");
};