# Recursion: What is actually happening here?

**URL:** <https://forum.freecodecamp.org/t/recursion-what-is-actually-happening-here/343528>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [January 22, 2020, 3:41pm UTC](https://forum.freecodecamp.org/t/recursion-what-is-actually-happening-here/343528 "2020-01-22T15:41:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![beadle](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/beadle/32/131984_2.png) [@beadle](https://forum.freecodecamp.org/u/beadle)\
**Post date:** [January 22, 2020, 4:32pm UTC](https://forum.freecodecamp.org/t/recursion-what-is-actually-happening-here/343528/4 "2020-01-22T16:32:38Z")

</div>

Thank you @JeremyLT and @ArielLeslie for the responses. I now have the understanding I was needing.

Also, I decided to write it all out on paper and this helped tremendously as well. Here is a picture of that incase anyone is curious. I went with n = 3 to begin with so it wouldn’t be so long. I guess this is why we use computers lol!

The red indicates the flow back once the base case has been reached. @ArielLeslie I see now what you mean about setting up dominoes. Then the base case, or exit condition, gives the last domino a little flick to set it all into motion.

 ![IMG_3888](https://global.discourse-cdn.com/freecodecamp/original/3X/7/6/765f04ab4bf5269630dc3c609f8c2e92541570db.jpeg)

---

_[View the full topic](https://forum.freecodecamp.org/t/recursion-what-is-actually-happening-here/343528)._
