5. Logical Operators


#1


I've been looking at this for 2 days now and i'm not seeing it.


SyntaxError: Unexpected token {


var user = prompt(" What is your name").toUpperCase();
switch(name){
case'Amit':
if(Amit&&Selina){
    console.log("Cute Couple");
    }else{
    console.log("I don't know them!");
if(Amit||Selina){
    console.log("Who are they?");
}else{
    console.log{"They're celebrities!");
}
    break;
case'Selina':
    console.log("That's pretty!");
    break;
case'Blake':
    console.log("Very strong name");
    break;
default:
console.log("I've never heard of that before!");
}


#2


#3

Hahaha! Thank you! I've been looking and looking and looking.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.