Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
let
a = 7
2
3
function
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
10
function
facFor(number){
Callers
1
script.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected