Please helppp 12/13


#1

Please send helppp. I can't figure out which part went wrong. ):

// Write your function below. 
// Don't forget to call your function!
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!";
    }
sleepCheck(10);
sleepCheck(5);
sleepCheck(8);

#2

You dont need the bracket separating the if else statements and your condition should be based on numHours not sleepCheck.So,it should be written like this:

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

and also use console.log to print the results. So it should be console.log(sleepCheck(10));


#3

I guess the important part is that you need to use numHours in the condition and not the name of your function. For the brackets part, it's true but only if you're dealing with 1 statement conditions if you have stuff like this:

if(condition)
    statement1
    statement2

you really need the brackets otherwise statement2 would not belong to the condition. As it is not covered in this track and as it doesn't harm to use them I'd recommend to use them even if they are not explicitly necessary here. They also increase the readability if the code if well formatted.