Need help with Basic JavaScript: Replace Loops using Recursion

There have been a few really good and in-depth discussions of how recursion works here on the forum, where people have drawn diagrams, shared their favorite articles and videos, and stepped through the process of some of the freeCodeCamp recursive functions. I’m not trying to discourage you from asking questions, but since you are generally asking for a broad explanation, I suggest reading through past explanations (the forum search feature is very good) so that you can ask more specific questions about the parts that don’t make sense to you.

Here are a couple: