script.js
// Function for start time. Within this a setInterval () that will repeatly call a function at 1000 milliseconds.  The clearInterval () is called to stop the timer when seconds equal zero.
Function for start time. Within this a setInterval () that will repeatly call a function at 1000 milliseconds.  The clearInterval () is called to stop the timer when seconds equal zero.
Function for start time . Within this a setInterval () that will repeatly call a function at 1000 milliseconds . The clearInterval () is called to stop the timer when seconds equal zero .
function startTime() {
    var timer = setInterval(function () {
        timerEl.textContent = seconds;
        seconds--
        if (seconds === 0) {
            clearInterval(timer);
        }
    }, 1000
    )
}
function startTime ( ) { var timer = setInterval ( function ( ) { timerEl . textContent = seconds ; seconds -- if ( seconds === 0 ) { clearInterval ( timer ) ; } } , 1000 ) }
Function for start time.
Function for start time .