Logical Operators


#1

I'm getting this error saying:
Make sure to use at least one logical 'or' (||)!
here's my code
var user = prompt("What's your name?").toUpperCase();
switch(user){
case 'Dylan':
console.log("Hi there, Dylan!");
break;
case 'Steve':
console.log("Seems like a good name for me.");
break;
case 'Max':
console.log("What a nice name!");
break;
default:
console.log("Hello there!");
}
var month = prompt("What's the time of the year?").toUpperCase();

switch(month){
case 0:
if(day == 1) {
console.log("Happy New Year!");
}
else {
console.log("Happy January!");
}
break;
};


Syntax error
#2

You haven't used an 'or' operator at all here. You need to to pass.


#3

the hint said nothing about the 'or'


#4

I got another error saying 'or' is not defined!


#5

I got it to work sorry about that