I think that this thread is the best so far at explaining what is happening here. A few different people have chimed in with how they explain recursion.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Replace Loops using Recursion -1 explanation | 55 | 4134 | March 1, 2021 | |
| Recursion. Why multiply(arr, n) == multiply(arr, n - 1) * arr[n - 1]? | 20 | 2351 | April 28, 2022 | |
| Basic JavaScript: Recursion problem | 9 | 1498 | July 30, 2020 | |
| Need clarification | 3 | 522 | February 8, 2020 | |
| Basic JavaScript - Replace Loops using Recursion | 21 | 1259 | June 18, 2023 |