Sleep Debt Calculator console.log (getAcualSleepHours()) gives the answer of NaN

Hi I’m working on the sleep debt Calculator, and have run into a problem on step 5. Instead of adding the number of hours it returns an answer of NaN. I have add a pic of my code below. Any help would be apricated.

what operation resulted in NaN and what input did you give it?

(there’s stuff you can investigate)

1 Like

Thank you. It turned out I forgot to give Wednesday a number to return. :laughing: