MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / factorial

Function factorial

Video 69/script.js:3–7  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

1let a = 7
2
3function factorial(number){
4 let arr = Array.from(Array(number+1).keys())
5 let c = arr.slice(1,).reduce((a, b)=> a*b )
6 return c
7}
8
9
10function facFor(number){

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected