CodeNewbie Community 🌱

Discussion on: What was your greatest "aha" moment?

Collapse
 
crislanarafael profile image
Crislana Rafael

When I was first introduced to the concept of recursion, I had trouble wrapping my head around it. I understood the basic rules, but it still did not click. So, I decided to try writing it down - I would start with an easy recursive function and write down what it would return. I think that being able to visualize how recursive calls get down to the base case and then that's when you start returning values all the way back to the original recursive call on paper helped me to understand recursion a little better.

Sometimes tracing code on paper can help you understand what is going on!