Umm what wrong about my code for 12/14


#1

var tired = false;
var bored = true;

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


#4

This lesson is about the OR operator, ||, and not about the NOT, ! operator.

if (tired || bored) {
    // code
} else {
    // code
}