5. Logical Operators


#1

var user = prompt("Is this the Krusty Krab?").toUpperCase();
switch(user) {
case 'NO, THIS IS PATRICK.':
console.log("Oh. Sorry, Pat.");
break;
case 'No, THIS IS PATRICK!':
console.log("You don't have to sound so rude.");
break;
case 'NO!!! THIS IS PATRICK!!!':
console.log("I GET THE POINT!!! YOU DON'T HAVE TO YELL!!!");
break;
default:
console.log("Oops! Wrong number.");
}
How do I add if/else statements to this code?


#2

What would you like to add with the if/else statements? or where would you like it to be?


#3

AMEN to that question, Brother! Did you ever get an answer. These forums are a b**** to make sense out of.