12/14 Do not understand what is wrong


#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 {
return false
}
};

This is my code and I have no clue of what is wrong, the error message that shows up is.

ReferenceError: invalid assignment left-hand side

Help needed thanks!


#2

HI try to put equale with === inside your if condition


#3

@wizmarco thanks for the help that solved my issue!