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

Function facFor

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

Source from the content-addressed store, hash-verified

8
9
10function facFor(number){
11 let fac = 1;
12 for (let index = 1; index <= number; index++) {
13 fac = fac * index
14 }
15 return fac
16}
17console.log(factorial(a))
18console.log(facFor(a))

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected