12.Functions & f/else


#1


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

The code seems to go through but I get this message when I hit "Save and Submit" "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." please help me figure this out currently in firefox.


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


#2

Hi the returrn statatement inside the else statement return

return "Get some more sht eye!";

instead of

return "Get some more shut eye!";