A Basic Recursion Example in ES6
First of all, what is recursion? Recursion is basically a programming concept, and a different way of thinking problem. More precisely, it is a function that repeating calling itself until it reaches exit condition. Most loops can be rewritten into a recursive style in…