Help on Functions & if / else


#1

My code print the right thing on the console but it say "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." but the console displays
"You're getting plenty of sleep! Maybe even too much!
Get some more shut eye!
You're getting plenty of sleep! Maybe even too much!

This is my code

var sleepCheck = function(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

You have a huge space, copy and paste the text if you need to.


#3

no that only happen when i copy & pasted it there is no space there.


#4

Format your code. It's impossible to help if the code you posted was wrong.