Issues with 12


#1

Can anyone see the issue here?

Code:
var sleepCheck = function (numHours) {

if (numHours >=(8)) {
    return "You're getting plenty of sleep! Maybe even too much!";
} 
else {
    return "Get some more shut eye!";
    }

}

   console.log (sleepCheck = 10);
   console.log (sleepCheck = 5);
   console.log (sleepCheck = 8);

Error:
Oops, try again. Make sure to define a function named sleepCheck()


#2

8 should not be in parenthesis ()


#3

I've tried that but it doesn't make a difference to the error or the output :frowning:


#4

You don't console.log the function

And remove the parenthesis from around 8

it should just be:
if (numHours >= 8 ) {


#5

You are missing the ; after closing the function. Hope that helps!