Factorial (Recursion): Recursion example

A fact(n) function that calls itself: fact(5) waits for fact(4), down to fact(1). Open Values and Step to watch the call stack.