12/13


#1

var sleepCheck = function(numHours)

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

why this no work


#2

No semicolon after condition see this post for a longer explanation:

if (numHours >= 8)
{
    return "You're getting plenty of sleep! Maybe even too much!"
}; //<--
else
{
    return "Get some more shut eye!"
}; //<--
sleepCheck(10)