12. Functions & if / else


#1

please can someone help me debug this code. the first block doesn't run. it keep telling me that I should check my if/else statement. Maybe I don't use the correct comparison. can I get help please!!!!!


Welcome to our forums! Please Introduce Yourself
#2

// Write your function below. 
// Don't forget to call your function!
var sleepCheck = function(numHours)
{
     if(sleepCheck >= 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));

#3

You need to check if the number of hours is greater than eight.

so: if(numHours >= 8) {