12. Functions and if/else


#1

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

I keep getting a message saying that my function did not print out "Get some more shuteye" even though it does. The message tells me to check my comparison operator. I don't see what the error could be.

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

console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));

#2

the string returned should be an exact match, shuteye for example should be two words


#3

Thanks. I didn't catch that.


#4