I’m trying to grasp the concept of asynchronous JS and in it there’s this concept of promises, something used to escape nested call stacks. A call stack I just feel like this can be done much better if recursive functions are used. RF function calls can be altered, and we only need to be careful that we don’t accidentally run the recursive function to infinity.
A promise This image shows a promise. I haven’t tried using a recursive function but I can definitely see it solving this issue with less redundancy.