sleepCheck 12/13


#1

Can someone explain why this isn't working Please!!

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




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.




This is my code

// Write your function below. 
// Don't forget to call your function!
var sleepCheck = function(numHours) {
    if (numHours >= 8) {
        return "Your'e getting plenty of sleep! Maybe even too much!";
    }
    else {
        return "Get some more shut eye!";
    }
};

console.log(sleepCheck(10));


#2

the string returned should be an exact match, copy paste it from the instructions


#3

What do you mean? :confused:


#4

Your'e

here is already one typo in your string, you can't have any typo's in it, so i recommend to copy the string from the instructions


#5

THANK YOU VERY MUCH!!!! :slight_smile:


#6