Is this code right for this lab?


#1

It keeps telling me I'm using the wrong operator but I thought the greater than or equal was >=

// Write your function below.
// Don't forget to call your function!

var sleepCheck = function(numHours)
{
if (numHours>=8)
{
console.log("You're getting plenty of sleep! Maybe even too much!");

}
else
{
    console.log("Get some more shut eye!");
}

};

sleepCheck(8);

#2

Runs fine for me dude.

Reset the exercise and refresh browser, sometimes helps.