Console log issues again, Sleep debt


#1

This too is not loading. I see in others codes there are various ways to get from A to B. I am curious here if it is my syntax or if i am approaching this entirely wrong.


#2

Hi again :slight_smile:

Like the Password Validator project, you need to approach this project using separate functions, not one large function with nested functions.

In this project, you need 3 small helper functions, and 1 master function to call those helper functions.

Also, in the master function (calculateSleepDebt) you should use a combination of if…else statements for the final console log() section.

Again, I hope that's enough help to get you moving on with this project. Everything else you've done looks A+ :slight_smile: