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


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);


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


Thank you!!! Copy paste worked.