Can't find an error (if/else)


#1

var sleepCheck = function (numHours)
{
if (numHours>=8) {
return "You're getting plenty of sleep! May be even too much!";
}

else {
    return "Get some more shut eye!";
}

}

sleepCheck(10);


#2

the string returned should be an exact match, copy it from the instructions


#3

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