Whats the problam with this code?


#1

// Write your function below.
// Don't forget to call your function!

function sleepCheck(numHours) {
if (numHours >= 8) {
return "You're getting plenty of sleep! Maybe even too much!";
}
else {
return "Get some more shuteye!";
}
};
console.log(sleepCheck(8));
console.log(sleepCheck(5));
console.log(sleepCheck(10));


#2

The syntax seems to be ok although the function declaration is not covered in this course :wink:
So I guess the problem is a typo in one of your output messages. First guess would be: shuteye