
A function that calls itself is a recursive function. This method is used when a certain problem is defined in terms of itself.
The most popular example of recursion is the calculation of the factorial. Mathematically the factorial is defined as: n! = n * (n-1)!
Here an example for that.

Imagine we want to calculate the faculty of 5, the outcome would look like that:
