GLOSSARY · A WORD, UNPACKED
recursion
a function solving a problem by calling itself on a smaller or simpler case.
A little more detail
Each path must eventually reach a base case that stops making another call. Without progress toward that case, the call stack can grow until the runtime throws a maximum-call-stack error. A loop may be clearer for straightforward repetition.
See it in practice
These lessons pair the idea with examples you can change and run.