12/13 "Functions & if/else" Code doesn't work



Here is the message I am getting when I press run:

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

My Code:

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


the string returned should be an exact match, copy paste it from the instructions


Please can some help? I can't seem to move on because of the error


I get the correct output, but cannot move on to the next lesson


same solution should apply for you, if not, make a new topic