12. Functions & if / else


12. Functions & if / else

Oops, try again. It looks like sleepCheck() isn't returning "You're getting plenty of sleep! Maybe even too much!" when numHours is 10. Check your if / else syntax and whether you're using the correct comparison operator.

Replace this line with your code. 
var sleepCheck=function(numHours)
        return "You're getting plently of sleep! Maybe even too much!";
        return "Get some more shut eye!";


Check the spelling of this word.


omg thank you! I feel like an idiot :frowning:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.