12/13


#1
var sleepCheck = function(numHours) {
    if (numHours >= 8) {
        return "You're getting plenty of sleep! Maybe even too much!";
    };
    else (numHours < 8) {
        return "Get some more shut eye!";
    };
};
sleepCheck(10);
sleepCheck(5);
sleepCheck(8)

I am writing this, but it is not accept. I'm getting syntax error. Please help :sweat:


#2

The problem is that you're using semicolons after conditions here is a post that explains why this might be a problem:
https://www.codecademy.com/forum_questions/52373a75548c3515940000dc#answer-529fa36052f863bb58000338


#3

Thank you. I fixed it


#4

How did you fix it?I have same problem.