factorial

Guide: /guide/algorithms/factorial

Signature

factorial(x);
memoizedFactorial(x);

Params:

NameTypeRequiredDefaultDescription
xnumber+

Returns:

number