Bug?


#1


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


I wrote this code but it always gives me error: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 at the same time it prints what it should on the console.


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


#2

strings returned should be an exact match, for example in your string you have two spaces instead of one between even and too


#3

Thanks again, you're a real time saver <3


#4