var timer, k = 2020; function doing() { k += 2; document.getElementById("num").innerHTML = k; } function startTimer() { timer = setInterval(doing, 100); } startTimer();
Done!
var timer, k = 2020; function doing() { k += 2; document.getElementById("num").innerHTML = k; } function startTimer() { timer = setInterval(doing, 100); } startTimer();
Done!