Multiply every positive integer through a non-negative input and return its factorial.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The factorial multiplies integers from one through n, with 0! defined as 1. JavaScript numbers are used and the input is capped before the result becomes non-finite.
10
10! = 3628800
Permutations use factorials, probability formulas use n!, and combinatorics lessons check the zero base case.