12/13 doesn't return one condition


#1

My code is

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

I take this error "Oops, try again. It looks like your function doesn't return "Get some more shut eye!" when numHours is 5. Check your if / else syntax and whether you're using the correct comparison operator."

Can anyone help me


#2

try

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));

You have spelling errors


#3

okey,it works now thanks