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

Function catchInsect

assets/js/InsectCatch.js:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60function catchInsect() {
61 increaseScore()
62 this.classList.add('caught')
63 setTimeout(() => this.remove(), 2000)
64 addInsects()
65}
66
67function addInsects() {
68 setTimeout(createInsect, 1000)

Callers

nothing calls this directly

Calls 2

increaseScoreFunction · 0.85
addInsectsFunction · 0.85

Tested by

no test coverage detected