Can't pass sleepCheck


#1

What's wrong? I've refreshed and changed browsers

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

console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#2

your code works . Try to copy the messages exactly as they put it.
what is the error?


#3

thanks... it worked when i copied the message.