What am I doing wrong


#1



SyntaxError: Invalid or unexpected token


var sleepCheck = function (numHours) 


{


if (numHours >=8) { 
    return "You're getting plenty of sleep! Maybe even too much!";
    }
    else {
        return "Get some more shut eye!;
        
}
}


#2

this line:

return "Get some more shut eye!;

missing quotation mark to close the string


#3

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