Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ Coin_Toss.js
File
Coin_Toss.js
assets/js/Coin_Toss.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
//grab selection of head or tail
2
const
buttons = document.querySelectorAll(
'button'
);
3
//set values for heads and tails
4
let
heads = 1;
Callers
nothing calls this directly
Calls
3
displaySelections
Function · 0.85
displayRandom
Function · 0.85
tallyScore
Function · 0.85
Tested by
no test coverage detected