Functions/if else HELP


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

//It keeps saying Unexpected token:else
var sleepCheck = function(numHour){
if (numHours >= 8){
return “You’re getting plenty of sleep! Maybe even too much!”
};
else {
return “Get some more shut eye!”
};
numHour(8);
numHour(10);
numHour(5);.

<do not remove the three backticks above>

#2

HI you forgot to close your function sleepCheck()

var sleepCheck = function(numHours) { #open the sleepCheck fnction

 #here goes your if and else statement

} #close the sleepCheck function

then

numHour(8);
numHour(10);
numHour(5);.

you should call you function sleepCheck() instead of numHours() like that

sleepCheck(8)
...............

#3

I FIgured it out. Thanks!