Syntax problem : illegal return statement


#1

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

i dont understand whats wrong


#2

You have a typo in the word function.