sleepCheck 12/13


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

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!";



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


What do you mean? :confused:



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


THANK YOU VERY MUCH!!!! :slight_smile: