12 if/else


#1

I don't know whats wrong with my code ?

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


#2

If you need to return a string, copy it. Each character should be a perfect match, your string:

return "You're getting plenty of sleep!Maybe even too much!";

string required:

return "You're getting plenty of sleep! Maybe even too much!";

you miss a space between ! and Maybe


#3

you have two }s after the return


#4

of course, one to close the else, and one to close the function, so that is completely valid