12 Functions & if / else


#1

Please help, I am not sure what I am doing wrong. Have oops, errorr try again

var sleepCheck = function (numHours){

if (numHours >= 8) {

console.log("You're getting plenty of sleep! May be even too much!");
}
else
{
console.log ("get some more shut eye!");
}
};
console.log (sleepCheck(10));
console.log (sleepCheck(5));
console.log (sleepCheck(8));


#2

return "You're getting plenty of sleep! Maybe even too much!";.

please read the instructions carefully. Instead of console.log'ing the value it should return it.