A little stuck


12. Function & If/Else

Wrong Syntax error.

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


You need to surround the body of the function in curly brackets, just like you do with the bodies of the if and else statements.


Thank you. Didn't catch that one. :frowning: