9. Or


#1

var tired=true;
var bored=false;

var nap = function() {
if (hungry==true || bored==true; => true;
hungry==true || bored==false; => true;
hungry==false || bored==true; => true;
hungry==false || bored==false; => false;)
{
else
{
return false;
}

};

Can someone tell me the problem? It says syntax error, expected ) but I can't find where.


#2

I am so confused as to what you're trying to accomplish with this code.

Stick to the basics, and after that get more creative.

if (hungry == true || bored == true) { /*Code Here!*/ }
if (hungry == true || bored == false) { /*Code Here!*/ }
if (hungry == false || bored == true) { /*Code Here!*/ }
if (hungry == false || bored == false) { /*Code Here!*/ }