Function & if/else


Hi, i can't seem to solve this part. Whenever i submit it, it shows this
"Oops, try again. It looks like sleepCheck() isn't returning "You're getting plenty of sleep! Maybe even too much!" when numHours is 10. Check your if / else syntax and whether you're using the correct comparison operator." What's the matter with it ?

Replace this line with your code. 
var sleepCheck = function (numHours) {
if (sleepCheck >= 8)
{return "You're getting plenty of sleep!Maybe even too much!";}
{return "Get some more shut eye!";}}


the string returned should be an exact match, copy it from the instructions.

for example a space between ! and Maybe is missing


Tried, but it still doesn't work.


after doing what @stetim94 said do this too

if (sleepCheck >= 8)

sleepCheck is a function should check with numHours

if(numHours >= 8)


Thank you so much for your Help !!!! :smiley: