Functions & if / else


i am getting stuck over,
the error is
"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."
please help me out.

var sleepCheck=function(numHours){
return "you're getting plenty of sleep! Maybe even too much!";
return "Get some more shut eye!";



Please format it correctly. No one can read it.


i hope this is understandable.


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


i did but the same error is repeating


can you copy paste an updated version of your code to the forum?


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