Sleep Debt Calculator

Please find the below link and for the sleep debt calculator project. I have completed the tasks given. I am getting the output. But in the output I also got undefined. I don’t understand why I am getting it. Please let me know where I went wrong. Thank you in advance.

undefined means no value returned (absence of a return value), here:


you log the result of calling calculateSleepDebt, but calculateSleepDebt doesn’t return anything