DEV Community

Discussion on: What makes recursion hard

Collapse
 
fleepgeek profile image
Emmanuel Okiche

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

Collapse
 
jasterix profile image
Jasterix

great idea!