Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mouredev/hello-javascript
/ factorial
Function
factorial
Intermediate/00-advanced-functions.js:97–102 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
95
// Recursividad
96
97
function
factorial(n) {
98
if
(n <= 1) {
99
return
1
100
}
101
return
n * factorial(n - 1)
102
}
103
104
console.log(factorial(5))
105
Callers
1
00-advanced-functions.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected