Skip to main content

Practice · 5 of 6

Diagnose 5: the recursion without progress

CHALLENGE
Difficulty: advanced+25 XP

Classify the error, then repair countDown so it returns the count from n down to 0 inclusive (countDown(3) → 4).

Back to lesson: Practice: Diagnosis gauntlet