5 where is missing )?


#1

var choice = prompt("You want to be a web developer,Do u want to go to college,self taught").toUpperCase();

switch(choice) {
case 'Go to college':
var rich = prompt("Nice try!Do u have money(YES OR NO)?").toUpperCase();
var poor = prompt("Are u poor?").toUpperCase();
if (rich === "YES || poor === "YES") {
console.log("You have no problem go to college");
} else {
console.log("You should save u money!")
}
break;
case 'self taught':
var fast = prompt("Are u learning quckly(YES OR NO)?").toUpperCase();
var slow = prompt("Are u slow to learn?").toUpperCase();
if (fast === "YES" && slow === "YES") {
console.log("Wow,You can teach yourself at home");
} else {
console.log("You need a teacher")
}
break;
default:
console.log("I don't know what u mean")
};


#2

@textwhiz86979
Found the mistake here

if (rich === "YES || poor === "YES") {

I miss a " after YES
Should look like this:

if (rich === "YES" || poor === "YES") {