12/ or


#1

Hello, I can't find my problem, what is wrong with my code?
It says "Oops, try again. There was a problem with your syntax." and the monitor shows "SyntaxError: Unexpected token else"

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


#2

take a look at this line. Do you need a semicolon here?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.