Function Malfunction need some action, please help


Hey guys,

Just started learning to code with JS.

I got stuck lately with my lesson in JS about functions, I couldn't figure out how to properly write the if/else syntax inside function. And finally call it to finished.

Maybe you could help me out.

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

I'm getting this as a response below after I run the code above;

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.


Missing space character:

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


You saved my life!!! That was awesome!Thanks you much mtf!
I never thought that space would matter.