numHours going crazy


#1

i dont think anything is wrong with this dumb code...but here we are
the following code is faulty:
var sleepCheck = function (numHours) {
if (numHours >= 8) {
return "You're getting plenty of sleep! Maybe even too much";
}
else {
return "Get some shut eye!"
}
};
console.log(sleepCheck (5))
console.log(sleepCheck (10))
console.log(sleepCheck (8))


#2

Hey @zach2639! These are your problems, first you didnt copy the Get some shut eye

Instead of this:

do this:
return "Get some more shut eye!"

Now second instead of this:

Do this:
return "You're getting plenty of sleep! Maybe even too much!";


#3

and they are,amanuel2? id like to no! oops,too late XD


#4

Wait What? I edited the post above to show you your problems


#5

i edited it...i posted too late...


#6

You still have the same problems... Just correct these problems and you will be fine.

These are your problems, first you didnt copy the Get some shut eye

Instead of this:

do this:
return "Get some more shut eye!"

Now second instead of this:

Do this:
return "You're getting plenty of sleep! Maybe even too much!";


#7

i faxid oot
translation:its working now!