Function and if/else


#1

Hi, I'm stuck on lesson 12 of Introduction to Functions, I feel like I have it down but when I write this code it says "Oops, try again. There was a problem with your syntax.". I've double checked and it keeps displaying that. Any help?

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);

#2

Missing } at end of else statement.


#3

Thank you. I can't believe I didn't see that.