Stuck Part 12 of JavaScript


#1

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!";
}
}

sleepCheck(10);
sleepCheck(5);
sleepCheck(8);

I don't understand what I am doing wrong.


#2

here:

if (numHours=>8)

not sure what => does, to check if something is greater then or equal to you should use >=


#3

Thank you very much, stetim94! It worked. I made a mistake during the typo.


#4