Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ fact
Function
fact
deps/v8/test/js-perf-test/Compiler/medium.js:35–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
}
34
35
function
fact() {
36
let
i = a;
37
let
r = 1;
38
while
(i != 0) {
39
r *= i;
40
i--;
41
}
42
return
i;
43
}
44
45
function
is_prime() {
46
for
(
let
i = 2; i <= Math.sqrt(a); i++) {
Callers
2
medium.js
File · 0.70
fact.js
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected