Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MultithreadedJSBook/code-samples
/ isHappycoin
Function
isHappycoin
ch3-happycoin/happycoin.js:26–28 ·
view source on GitHub ↗
(num)
Source
from the content-addressed store, hash-verified
24
}
25
26
function
isHappycoin(num) {
27
return
isHappy(num) && num % 10000n === 0n;
28
}
29
30
let
count = 0;
31
for
(
let
i = 1; i < 10_000_000; i++) {
Callers
1
happycoin.js
File · 0.70
Calls
1
isHappy
Function · 0.70
Tested by
no test coverage detected