← Back to challenges

Factorial of Factorials

JavaScriptHardmathnumbersloopslanguage_fundamentals

Instructions

Create a function that takes an integer n and returns the factorial of factorials. See below examples for a better understanding:

Examples

factFact(4) ➞ 288
// 4! * 3! * 2! * 1! = 288

factFact(5) ➞ 34560

factFact(6) ➞ 24883200

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: RegEx Exercise 2: Find HTML Tags