If/Else Function


#1



// Write your function below. 
// Don't forget to call your function!
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!";
    }
};
sleepCheck(10)
sleepCheck(5)
sleepCheck(8)

Why do I keep getting a syntax message? Someone please help me.


#2

Unbalanced parenthesis, and semicolon. :slight_smile: