12. Or


#1

// Declare your variables here!
var tired = true;
var bored = false;

var nap = function() {
// Add your if/else statement here!
if (tired || bored === true) {
return true;
}
else (tired || bored === false) {
return false;
}
};

I am getting a SyntaxError: Unexpected token { What am I missing here?


#2

I removed the brackets from the if and else and it worked fine.


#3

else statements do not take conditions, that's what else means, ALL else.

{ is unexpected because you put () between them

Use else if () {} if you want another linking if statement.