12.Functions & f/else



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


Hi the returrn statatement inside the else statement return

return "Get some more sht eye!";

instead of

return "Get some more shut eye!";