script.js
// Update time remaining in game. change is subtracted from current time remaining.
Update time remaining in game. change is subtracted from current time remaining.
Update time remaining in game . change is subtracted from current time remaining .
function updateTimeRemaining(change) {
    var timeRemainingElement = document.querySelector(".timer-count");
    remainingTimeSeconds -= change;
    timeRemainingElement.textContent = remainingTimeSeconds;
    if (remainingTimeSeconds <= 0) {
        stopGame(false);
    }
}
function updateTimeRemaining ( change ) { var timeRemainingElement = document . querySelector ( ".timer-count" ) ; remainingTimeSeconds -= change ; timeRemainingElement . textContent = remainingTimeSeconds ; if ( remainingTimeSeconds <= 0 ) { stopGame ( false ) ; } }
Update time remaining in game.
Update time remaining in game .
// if timerCount gets to 0, it will clear the timer and call function 'loseGame'