You could add a debugger at the top inside your function and run it in chrome to see how the functions are added and popped from the stack.
Also, track the return value at each stage.
Remember, start small.
Start learning about recursion with the most basic example(maybe factorials).
Passionate about building great technology and connecting with people to create positive change. Happy to answer questions about transitioning to tech. Find me on Twitter @lounecl
You could add a debugger at the top inside your function and run it in chrome to see how the functions are added and popped from the stack.
Also, track the return value at each stage.
Remember, start small.
Start learning about recursion with the most basic example(maybe factorials).
Finally, patience, research and practice.
All the best
great idea!