beginner35 minby DevFox

Recursion: a function that calls itself (a gentle first look)

Write a function that calls itself: a base case it answers alone, a recursive case with a smaller job, a card of its own on the call stack for every call, answers coming back from the smallest call, and the RangeError a missing base case leaves behind.

  • TypeScript
  • Fundamentals
Recursion: a function that calls itself (a gentle first look). Read this lesson at .