12/14 Do not understand what is wrong


// 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!


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


@wizmarco thanks for the help that solved my issue!