What's wrong with my code?


#1

I have coded properly and gotten the results as required but I can't pass through. Here is my code;

// Write your function below. 
// Don't forget to call your function!

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

#2

HI try to look in the instruction if that string is identical to the one they gave you..

"You're getting plenty of sleep! Maybe too much!";

#3

Weird but it worked, but isn't what I wrote the same as what they asked ?


#4

here what they gave you in the instruction

"You're getting plenty of sleep! Maybe even too much!"

and yours

"You're getting plenty of sleep! Maybe too much!";

in yours it's missing even after Maybe


#5

:sweat_smile::cold_sweat:


#6