Logical operators


#1

My coding is not working. Some HELP Please!

var user = prompt("Which one of these will you choose?"\n"•Apple, Beautiful, Celia or Money").toUpperCase();

switch(user) {
case 'Apple':

    var eat = prompt("Are your hungry?","Yes or No?").toUpperCase();
    var cut = prompt("Do you cut before you eat or eat directly?").toUpperCase();

    if(eat || cut){
       console.log("It all depends on you whether you eat or cut the apple before you eat."); 
    }
    else{
        console.log("You are a mannered dude!");
    }
    break;

case 'Beautiful':

    var makeup = prompt("Do you apply makeup to feel beautiful?"+" Yes or No").toUpperCase();
    var brushHair = prompt("Do you comb your hair everyday?","Yes or No").toUpperCase();

    if(makeup && brushHair){
        console.log("Wow, you are a real feminine!");
        }else{
            console.log("If no makeup, comb your hair is fair enough as beauty should be natural.");
            }
    break;

case 'Celia':

    var know = prompt("Do you know her?" \n"1. Yes" \n"2. No").toUpperCase();
    var like = prompt("Do you like her?" \n"1. Yes" \n"2. No").toUpperCase();

    if(know || like){
        console.log("This is totally sweet of you!");
    }else{
        console.log("At least you either know her or like her once!");
        }
    break;

case 'Money':

    var pay = prompt("Do you have enough money to pay?","Yes or No?").toLowerCase();
    var amount = prompt("How much do you have?","Rs0?").toUpperCase();

    if(pay === "YES"){
        if(amount >= 100){
            console.log("You brided me well with"+" Rs"+amount);
    }else{
            console.log("That's not enough for a living in Mauritius!");
    }
}
else{
    console.log("You are not a good person!");
}
    break;

default:
    console.log("That is not justified, BE CLEAR!");
    break;

};


#2

Hi maybe it could be that you took the user answer to uppercase so you should change you name case with uppercase name in the first cAse

APPLE

#3

actually Celia you are missing the word switch so the breaks render invalid