#12 Can't See What is Wrong!


#1



12/13


I get this error

Oops, try again.
It looks like your function doesn't return "Get some more shut eye!" when numHours is 5. Check your if / else syntax and whether you're using the correct comparison operator.


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

sleepCheck(10);
sleepCheck(5);
sleepCheck(8);


#2

Hi you return statement inside the else statement should return that string

return "Get some more shut eye!"

Instead of

return "Get more shut eye!"

#3

When it asks you for a specific quote, remember to make no mistakes and copy the required quote to the letter. A single wrong space or misspelling can cause you to fail.