12 help


#1

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);

can someone please tell me where im goin wrong


#2

In your if condition instead of => you should have >=. And also you forget to close your function so before where you call your function put }.


#3

Including your error message would be really helpful!

In addition to fndiaye's fixes, remember that the instructions ask you to call the function for three different values.


#4

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