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

Function increaseTime

assets/js/InsectCatch.js:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30function increaseTime() {
31 let m = Math.floor(seconds / 60)
32 let s = seconds % 60
33 m = m < 10 ? `0${m}` : m
34 s = s < 10 ? `0${s}` : s
35 timeEl.innerHTML = `Time: ${m}:${s}`
36 seconds++
37}
38
39function createInsect() {
40 const insect = document.createElement('div')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected