Can anyone help me? I have no idea what is wrong with this code
Introduction to Functions in JS.
Function & if/else
var sleepCheck = function(numHours)
if( numHours >= 8 )
return "You're getting plenty of sleep! Maybe even too much!";
return "Get some more shut eye! ";
Oops, try again. It looks like your function doesn't return "Get some more shut eye!" when numHours is 5. Check your if / else syntax and whether you're using the correct comparison operator.