What is Recursion?

In this lesson, we will introduce recursion.

This chapter gives a basic introduction to recursion. If you feel confident about your knowledge of recursion, feel free to skip to a further lesson in the chapter. If you want to review or practice recursion, you can attempt the challenges in this chapter.

What is the deal with recursion?

If you’re in Tech, chances are you’ve heard a lot about recursion, so much so that it starts to sound intimidating. Well, we have you covered with this simple definition for recursion:

Recursion is the process of repeating a procedure.

Yes! That’s it. In computer science, recursion refers to a function calling itself, directly or indirectly. We will go over a couple of examples in this lesson before moving on to more difficult challenges later.

Get hands-on with 1400+ tech skills courses.