Why is this coming up wrong but yet running correctly?


#1

So when I run this code it actually is doing exactly what I want it to do however, codeacademy.com keeps popping up saying i am incorrect for reasons are dont match whats actually happening. The code is below, Thank you all for your help!

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

function sleepCheck(numHours) {

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

}
sleepCheck(10);


#2

return "Youre getting plenty of sleep! Maybe even too muh!"; // try: 'You're... too much!'

OR just copy string from instruction.


#3

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