Function If/Else


var sleepCheck = function(numHours){
    if (numHours >= 8)
      "You're getting plenty of sleep! Maybe even too much!";  
    else {
        "Get some more shut eye!";

Im not sure what is wrong. Although I have seen a lot of posts on it. Help. Tq.


oh lol. I forgotten about return in the if else statement.


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