Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same function.