12. functions and 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.

var sleepCheck = function (numHours){
        return "You're getting plenty of sleep! Maybe even too much";
    else{ return "Get some shut eye!";}


you missed a ! after

Maybe even too much // here


thank you, it worked also I forgot the more in the else part so that fixed it thanks again!


yes. :slight_smile: i just told you only the first step to take


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