Hey. First question here since I started the Web Development path (so far so good ).
While doing the Sleep Debt calculator project i came across this “undefined” console error message and can’t figure out what I did wrong.
Code here: https://codepen.io/gabec123/pen/JjYyWGd
If you call
calculateSleepDebt() you will get the correct result, and an “undefined” on a new line. What am I missing?