MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / onBtnClick

Function onBtnClick

assets/js/FallingBulletsAnimation.js:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21console.log(mainDiv);
22
23function onBtnClick(){
24 mainDiv.style.backgroundColor = 'rgb(' + Math.random() * 255 + ',' + Math.random() * 255 + ',' + Math.random() * 255 + ')'
25}
26
27btn.addEventListener('click', onBtnClick)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected