MCPcopy Create free account
hub / github.com/codemistic/Web-Development / Timeformat

Function Timeformat

New Year CountDown App/script.js:28–33  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

26};
27
28function Timeformat (time) {
29 if(time < 10)
30 return (`0${time}`);
31 else
32 return time;
33}
34
35setInterval(countdown,1000) //Updtaes the function every 1 sec
36// 1000ms = 1 sec

Callers 1

countdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected