Problems with 12, functions if/else


#1


Please help me, i don't know where I'm going wrong!

https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661#

I get this errormesssage:

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.


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're not returning the exact string. You have too much spaces between 'too' and 'much'.


#3

ah i must be tired now .. thanku so much!!