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

https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/learn-javascript-functions/projects/sleep-debt-calculator

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: