Why does input of yes return 'make up your mind' aswel?


#1

var user = prompt("you like tunes??").toUpperCase();
switch(user){
case 'YES':
console.log("YOU LEGENND!!");
if('YES' && 'NO'){
console.log("make up ya mind");
} else {
console.log("makes sense");
}
break;
case 'NO':
console.log("youll learn eh");
break;
case 'MAYBE':
console.log("turn that into a YES!");
if('NO' || 'MAYBE'){
console.log("really not good enough");
} else {
console.log("again thats cool");
}
break;
default:
console.log("answer the fucking question m8");
}


#2

Try it with

if(user==='YES' && user==='NO'){