Or missing syntax


I do not see this prob, thanks

var tired=true;
var bored=false;

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



In this, you have to do it separately. You are on the right track, just that you have to change the way of how you compare those two things

if(tired === true || bored === true){return true}

P.S.Also, you have the bracket on the location there.


thanks, got it the bracket was the prob, however it looks like your way on the condition makes more sense.