Ive been stuck on this lesson for ever please help 5/7


#1

var user = prompt("Where were you born in USA?").toLowerCase();
switch(user) {
case 'yes':
var answer= prompt("Were you born in Georgia?");
if(answer=='yes'){
answer= true;
var choice= false;
console.log("Sweet I was born in Georgia too.")
if (answer== true && choice == false){
var deal= prompt("Do you like the USA?").toLowerCase();
if (deal=='yes'){
deal= true;
}
if(deal==true|| answer==false){
console.log("The USA looks right for you.")
}
}
}
if(answer=="no"){
asnwer= false;
console.log("LEAVE!!!!")
}
break;
case 'colorado':
console.log("fye lmao");

    break;
case 'hawaii':
    console.log("thats so far bro bro");

    break;
default:
    console.log("mane wtf is that Get outta here!!!");

}


#2

@corerockstar51358,
I tried your code
it does function...
What Oops.... or Error-message are you getting....??

var user = prompt("Where were you born in USA?").toLowerCase();
switch(user) {

    case 'yes':
        var answer= prompt("Were you born in Georgia?");
        if(answer=='yes'){
            answer= true;
            var choice= false;
            console.log("Sweet I was born in Georgia too.")
            if (answer== true && choice == false){
                var deal= prompt("Do you like the USA?").toLowerCase();
                if (deal=='yes'){
                   deal= true;
                }
                if(deal==true|| answer==false){
                    console.log("The USA looks right for you.")
                }
            }
        }
        if(answer=="no"){
              asnwer= false;     // should be answer ??
              console.log("LEAVE!!!!")
        }
        break;

   case 'colorado':
         console.log("fye lmao");
         break;
   case 'hawaii':
        console.log("thats so far bro bro");
        break;
   default:
        console.log("mane wtf is that Get outta here!!!");

}

#3

Oops, try again. It looks like you didn't put in any if/else statements! (Make sure to use if/else, and not the ternary operator '? :'.
this is what it says whenever i do it


#4

@corerockstar51358,
Please give us the code you are using....


#5

var user = prompt("Where were you born in USA?").toLowerCase();
switch(user) {
case 'yes':
var answer= prompt("Were you born in Georgia?");
if(answer=='yes'){
answer= true;
var choice= false;
console.log("Sweet I was born in Georgia too.")
if (answer== true && choice == false){
var deal= prompt("Do you like the USA?").toLowerCase();
if (deal=='yes'){
deal= true;
}
if(deal==true|| answer==false){
console.log("The USA looks right for you.")
}
}
}
if(answer=="no"){
asnwer= false;
console.log("LEAVE!!!!")
}
break;
case 'colorado':
console.log("fye lmao");


#6

thank you for helping me