I passed, but it didn't run as expected....why?


#1

Hey all -

So I passed the lesson, but when i submitted my code, the 'game' didn't prompt me for my additional questions. Can anyone look and tell me if there was something I did or didn't do that may have caused it? (and for those of you who are sensitive, beware, I used a term some people consider rude...but I was just playing around.)

var user = prompt("Are you a total ■■■■■■?").toUpperCase();

switch (user) {
case 'no':
var Nickleback = prompt ("Do you like Nickleback? YES or NO").toUpperCase();
var Metallica = prompt ("Do you like Metallica? YES or NO").toUpperCase();

if (Nickelback === NO || Metallica === YES) {
    console.log("Good.  We need more like you.");

}
else {
console.log("What's wrong with you?");
}
break;
case'yes':
var buy = prompt("did you buy a nickelback album? YES or NO").toUpperCase();
var listen = prompt("did you listen to that album? YES or NO").toUpperCase();
if (buy === YES && listen === YES) {
console.log("Of course you are ■■■■■■■■, you Nickelback loving moron."); }
else {
console.log("There may still be hope for you.");
}
break;
case'maybe':
console.log("I'm willing to bet you are.");
break;
default:
console.log("If you don't know then you are.");
break;
}


#2

@jdaniel_author,
Change your

var user = prompt("Are you a total ■■■■■■?").toUpperCase();

into

var user = prompt("Are you a total ■■■■■■?").toLowerCase();