I am making a countdown timer with JavaScript.
Here is my script.
var seconds_left = 10; var interval = setInterval(function() { document.getElementB
var seconds_left = 10; var interval = setInterval(function() { document.getElementById('timer_div').innerHTML = --seconds_left; if (seconds_left <= 0) { document.getElementById('timer_div').innerHTML = 'You are ready'; clearInterval(interval); } }, 1000);
Here is the Example