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


#1


https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661#


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";
    };
};
console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#2

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


#3

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


#4

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


#5

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


#6