Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
function
facFor(number){
11
let
fac = 1;
12
for
(
let
index = 1; index <= number; index++) {
13
fac = fac * index
14
}
15
return
fac
16
}
17
console.log(factorial(a))
18
console.log(facFor(a))
Callers
1
script.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected