Functions and if/else


having a little trouble getting through this lesson, any help would be greatly appreciated. Thanks!

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.

var sleepCheck = function(numHours)
if (numHours >= 8)
return "Your're getting plenty of sleep! Maybe even too much!";
return "Get some more shut eye!";


This should be You're


Should be You're instead of Your're and @kyleaw got me again xD


haha wow, thanks. Glanced over that every proof read through.


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