Function & if/else


#1

//What is wrong with my code
// Write your function below.
// Don't forget to call your function!
var sleepCheck = function(numHours)
if (numHours>= 8){
return "You're getting plenty of sleep! Maybe even too much!"}
else {"Get some more shut eye!";}
sleepCheck(10);
sleepCheck(5);
sleepCheck(8);


#2

Hi you should put your if and else statement inside the function sleepCheck()

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

#here put the if and else statement

}#close the function sleepCheck