Function & If/Else


#1



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

I don't understand what is wrong with the code? Anyone know where I messed up? :slight_smile: 

Replace this line with your code.


#2

I don't see any error. Change browser, that might fix it.


#3

think you are missing a { after (numHours >= 8)