Create A Counter Using SetTimeout In JavaScript ?
//JAVASCRIPT
var count = 0;
function counter() {
document.getElementById("counter").innerHTML = count;
count = count + 1;
setTimeout(counter, 1000)
}
counter();
//HTML
Counter <span id="counter"> 0 </span>