Skip to main content

Practice · 2 of 6

Diagnose 2: the backwards accumulator

CHALLENGE
Difficulty: intermediate+25 XP

Classify the error, then repair total so it returns the sum of the array (empty → 0).

Back to lesson: Practice: Diagnosis gauntlet