Recursion
5 min readJan 27, 2021
I happen to stumble upon this term when I was doing some JavaScript exercise and got curious about it. There seems to be quite a lot of debates regarding using loops versus using a recursive function. So, in this article, I will try my best to explain my knowledge of recursion and when it is used.
There is a popular saying in recursion that in order to understand recursion, you must first understand recursion. But that is not totally true…