MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / start

Function start

Pomodoro-Timer/app.js:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6time = 25*60;
7
8function start(){
9 interval = setInterval(() => {
10 time--;
11 display(format(time));
12 if(time === 0){
13 clearInterval(interval);
14 timerElement.innerText = '00:00';
15 resetTime();
16 }
17 },1000);
18}
19
20function resetTime(selectType){
21 if(selectType === 'pomodoro')

Callers 1

app.jsFile · 0.85

Calls 3

displayFunction · 0.85
formatFunction · 0.85
resetTimeFunction · 0.85

Tested by

no test coverage detected