recursion
A function calling itself.
Recursion is a function calling itself; each call gets its own stack frame.
Loading interactive…
Examples
countdown(2)callscountdown(1), which callscountdown(0): three frames on the stack at once, each with its ownn.
See also