MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / time

Function time

w3/d4/setInterval.js:31–39  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

29
30
31function time(count){
32 debugger;
33 let timerId = setInterval(() => {
34 debugger;
35 count--;
36 console.log(count);
37 if(count === 0) return clearInterval(timerId);
38 }, 1000)
39};
40
41time(15)

Callers 1

setInterval.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected