(e)
| 43 | } |
| 44 | |
| 45 | function 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 | |
| 52 | moles.forEach(mole => mole.addEventListener('click', wack)) |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected