Compute the factorial of non-negative integer n.
n
A non-negative integer.
Returns the product of all positive integers less than or equal to n.
0.1.0
factorial(4)// => 24 Copy
factorial(4)// => 24
Compute the factorial of non-negative integer
n
.