Lesson 12


#1

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

I can't get this to work. I keep getting a message saying "SyntaxError: Unexpected token else". I haven't seen any answers to this message, so anything would be helpful.


#2

No semicolons after conditions:


#3

you need to add semicolons at the end of your functions. Not on the inside.