Sleep Debt Calculator: no idea why syntax error occurs in final step

I have no idea why I’m getting a syntax error in the last part of the sleep debt calculator exercise. The video explainer is outdated and does not correlate with the exercise. It doesn’t explain the concepts at all well. Any ideas?

const calculateSleepDebt = () => {

const idealSleepHours = getIdealSleepHours(8);
};

There is clearly a function dependency for which we have no code. Where did that 8 come from? Is there meant to be a parameter in the outer function? What is the objective apart from what we may ascertain from the function names?

1 Like