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

Function play

stopwatch/app.js:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function play(){
43 startTime = Date.now() - elapsedTime;
44 timerInterval = setInterval(function printTime(){
45 elapsedTime = Date.now() - startTime;
46 displayInTimer(timeToString(elapsedTime));
47 },10);
48 toggleButtons("PAUSE");
49}
50
51function pause(){
52 clearInterval(timerInterval);

Callers

nothing calls this directly

Calls 3

displayInTimerFunction · 0.85
timeToStringFunction · 0.85
toggleButtonsFunction · 0.85

Tested by

no test coverage detected