Factorial of number
Calculates the factorial of a number.
The JavaScript algorithms collection includes implementations and examples of popular algorithms in ES6. Algorithmic snippets are primarily a learning resource, as they might already be implemented natively or require optimizations to run in production.
Calculates the factorial of a number.