Compute the factorial of n.
n
Any positive integer
n!
const y = SMath.factorial(5); // 120 Copy
const y = SMath.factorial(5); // 120
Compute the factorial of
n
.