I have a problem. Who can help me soon?


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.

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


important word in this sentence: returning, if you have to return something, use the return keyword. console.log() will only log to the console


thank you very much <3


if you then want to log what is returned you can use console.log() on the function calls:



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.