Lesson 12 Functions if/then


#1

Hey, can't figure out what I'm doing wrong here. thanks!

var sleepCheck = function(numHours);

{ if(numHours>=8){
return "You're getting plenty of sleep! Maybe even too much!";
}
};

{else(numHours<8) {
   return "Get some more shut eye!";
    }

};
sleepCheck(10);
sleepCheck(5);
sleepCheck(8);


#2

Remove the semi-colon.

    else {