Correction of code in javascript


ar sleepCheck=function(numHours)
return("You're getting plenty of sleep! Maybe even too much!");

{ return("Get some more shut eye");

error: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


strings returned should be an exact match, you are missing the exclamation mark after eye


yeah, you are right..thanks for the help but codeacademy should not show that type of error for that!!!!right??


i think the error indicates that the string returned isn't an exact match, the course is going to get an upgrade soon, so then this is no longer relevant, the courses are indeed in need of a update