x
You solved the puzzle!
There's a new one coming soon 😉
July 11th, 2024
What's missing in this code?
// Can you complete the code to find
// the factorial?
factorial
(
5
);
// -> 120
function
factorial
(
n
)
return
[
(n)].
reduce
(
(acc, _, i) => acc *
,
);
Type or select from these options
0
1
i + 1
i
(i + 1)
n
Array
...Array
new Array
CHECK