JavaScript Sleep Debt exercise: "actualSleepHours" undefined

Hi there,

I’m stuck on the Sleep Debt Calculator exercise. I watched the Get Help video, and as far as I can see, I have the exact same code, so I’m wondering why I keep getting the error message “actualSleepHours is not defined”. Could someone please help me out? Thank you in advance!

Check that your function does not close too soon.

1 Like

Wow, so simple. Thank you!

1 Like

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