Or operator! stuck!


#1

i suppose this is correct but, not sure what's wrong. appreciate the help :wink:

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

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


#2

changed one of the "var" to false but still getting error.


#3

got it! first mistake was that i was passing booleans as strings (little dumb there!). anyway there u have it, in case u are stuck too.

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


#4