JS and DataStructures Recursion

What is recursion and why we use it?

What is Recursion? A function that Calls it self.

As a Javascript coder we use recursion everywhere. We use it with JSON.parse, document.getElementById, and many more. It will call itself until it’s done.

Here is a video where you can see examples of how to use it.