OR operator


#1

tired = true;
bored = false;

var nap = function() {
if ( tried || bored ) {
return true;
} else {
return false;
}

};

why does the console return false?


#2

In your if statement you put tried variable that doesn't exist.