Sleep Check Problems


#1

var sleepCheck = function(numHours){
if (numHours >= 8) {
return "You're getting plenty of sleep! May even too much!";
}
else {
return "Get some more shut eye!";
}
}
console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));

--I'm getting a message that says that it isn't returning the right info to the console, but it is. Stuck. What am I doing wrong?


#2
"... Maybe even too much!"

Be sure to match the text exactly to what is given in the instructions.


#3

Oh my, I feel silly. Thanks.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.