Factorial of Factorials

Published by Mubashir Hassan in

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

Watch a quick demo on how Edabit works.