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

Function wack

assets/js/whack-a-mole.js:45–50  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

43}
44
45function wack(e){
46 if(!e.isTrusted) return; //** new thing I learned */
47 score++;
48 this.parentNode.classList.remove('up'); //this refers to item clicked
49 scoreBoard.textContent = score;
50}
51
52moles.forEach(mole => mole.addEventListener('click', wack))
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected