Whats wrong with these code?


Hi, I got stuck in 12. functions & if / else. Here is my code. It runs well. But still show the message

Woops! try again.It looks like sleepCheck() isn't returning.....

function sleepCheck(numHours){
    return "You are getting plenty of sleep! Maybe even too much";
    return "Get some more shut eye!";



Whats wrong with it actually?


remove the semicolons from your two return statements and try again. I haven't used JS in years but I looked up a JS function example on the WWW


Instead of:

return"You're getting plenty of sleep! Maybe even too much!";

You put

check that exclamation mark. Also, put console.logs before your sleepChecks.