5/6 need help!


#1

Here is my code:

var qb = prompt("Who are the best NFL QB?").toUpperCase();
switch (qb){
case 'MANNING':
if (MANNING || ELWAY){
console.log("He is one of the greats");
} else {
console.log("Are you serious? You think he is the best?");
}
break;
case 'ELWAY':
if (MANNING && ELWAY) {
console.log("Both Bronco QBs, you must be from CO")
} else {
console.log("Don't worry, no one is perfect")
}
console.log("another great choice, but not as good as Manning");
break;
case 'BRADY':
if (user === BRADY || ELWAY) {
console.log("You have a wierd taste in QBs")
} else {
console.log("you have got to be kidding me?")
}

console.log("good choice, but i heard he cheats");
break;

case 'FARVE':
console.log("No, he sucks");
break;

default:
console.log("they are not QB's that i know of");
break;

};

I made is work once, but it would not work with everything. It says MANNING is not defined. Where am i going wrong?


#2

Nevermind, I got it. I had to define Manning by putting "" around his name. In additon to putting "" around all the choices