Lesson 12, can't figure out problem


#1

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

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

It says invalid left hand assignment, what does this mean? thanks!


#2

Hi inside here if (bored || tired = true) try to change = with ===


#3

It worked! thanks a ton!