See that? This recursive function multiplies n
with the factorial of n - 1
, until n
equals 1
.
Psst: a factorial of a number is the product of all the numbers from 1
to that number.
Oh noes! Didn't we define the function as having 1 parameter?