Timer using setInterval.
Update DOM dynamically.
Example Code:
<p id="timer">10</p>

<script>
let count = 10;
let interval = setInterval(function(){
document.getElementById("timer").innerText = count;
count--;
if(count<0) clearInterval(interval);
},1000);
</script>
YouTube Description:
Jifunze kuunda countdown timer kwa JavaScript step by step.
Hashtags:
#JSTimer #CountdownJS #Faulink