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
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.