Function & if/else. Can't get it to work. Please help. Thank you so much!


#1

var sleepCheck function (numHours) {

if (numHours >= 8) {

return "You're getting plenty of sleep!Maybe ven too much!";
}

else {

return "Get some more shut eye!";
}
};

sleepCheck (5);


#3

there is an equal sign missing in this line:

var sleepCheck function (numHours) {

where should it be?

Also, your strings returned should be an exact match, copy paste them from the instrunctions


#4

Thank you!!! Copy paste worked.


#5