Mental Model
Recursion solves a problem by breaking it into smaller, similar problems until it reaches the simplest case.
Analogy: Like peeling an onion layer by layer until you reach the core, recursion processes arrays or strings one element at a time until nothing is left.
array: [1, 2, 3, 4, 5] string: "hello" Recursion starts at the first element and moves forward -> [1] -> [2] -> [3] -> [4] -> [5] -> null or 'h' -> 'e' -> 'l' -> 'l' -> 'o' -> null ā current position
