Functions/if else HELP


#1



//It keeps saying Unexpected token:else 
var sleepCheck = function(numHour){
if (numHours >= 8){
return "You're getting plenty of sleep! Maybe even too much!"
};
else {
return "Get some more shut eye!"
};
numHour(8);
numHour(10);
numHour(5);.


#2

HI you forgot to close your function sleepCheck()

var sleepCheck = function(numHours) { #open the sleepCheck fnction

 #here goes your if and else statement

} #close the sleepCheck function

then

numHour(8);
numHour(10);
numHour(5);.

you should call you function sleepCheck() instead of numHours() like that

sleepCheck(8)
...............

#3

I FIgured it out. Thanks!