Function & if/else


//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!";}


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