Problem Understanding This Error and What is Wrong w/ my code


So I'm stuck here:

Here is the error I got: "Oops, try again. There was a problem with your syntax."

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!";


nest this condition in parentheses,


Wow I never noticed till now but i need parentheses XD


Haha yes, yes you do.


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