A little stuck


#1



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!";
}
else
{
    return "Get some more shut eye!";
}
sleepCheck(10);.


#2

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.


#3

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