I am doing a countdown timer with JavaScript.
Here is my script.
var seconds_left = 10; var interval = setInterval(function() { document.getElementById('timer_div').innerHTML = --seconds_left; if (seconds_left <= 0) {
It starts to count from 10 seconds.
I want to delete seconds when it gets 0 seconds and shows "Are you ready!" message.
Can anyone help?
source share