script.js
// This function does 2 things. displays the time and checks to see if time is up.
This function does 2 things. displays the time and checks to see if time is up.
This function does 2 things . displays the time and checks to see if time is up .
function renderTime() {
  minutesDisplay.textContent = getFormattedMinutes();
  secondsDisplay.textContent = getFormattedSeconds();
  if (secondsElapsed >= 75) {
    checkTruth();
    stopTimer();
  }
}
function renderTime ( ) { minutesDisplay . textContent = getFormattedMinutes ( ) ; secondsDisplay . textContent = getFormattedSeconds ( ) ; if ( secondsElapsed >= 75 ) { checkTruth ( ) ; stopTimer ( ) ; } }
This function does 2 things.
This function does 2 things .
// When renderTime is called it sets the textContent for the timer html... // ..and then checks to see if the time has run out