Facing syntax error in js program


#1

var sleepCheck=function(numHours){
if(numHours>=8){
return "You are Getting plenty of sleep! May be even too much!";
};
else{
return "Get some more shut eye!";
};
};
return(sleepCheck(10));
return(sleepCheck(5));
return(sleepCheck(8));
syntax error unexpected token else


#2

var sleepCheck=function(numHours){
    if(numHours>=8){
        return "You are Getting plenty of sleep! May be even too much!";
    }; //Remove this semicolon
    else{
        return "Get some more shut eye!";
    }; //This one is optional
};
return(sleepCheck(10));
return(sleepCheck(5));
return(sleepCheck(8));

#3

This is not working...it is showing SyntaxError: Illegal return statement