12.Functions & f/else


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661
<In what way does your code behave incorrectly? Include ALL error messages.>
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));

<do not remove the three backticks above>

#2

Hi the returrn statatement inside the else statement return

return "Get some more sht eye!";

instead of

return "Get some more shut eye!";