function finalMessage() {
  const finalCount = document.getElementById('moves-final-count'),
        seconds = document.getElementById('final-seconds'),
        minutes = document.getElementById('final-minutes');
  
  winInfo.style.display = 'block';
  finalCount.textContent = moves;
  displayRating(rating);
  printTime(minutes,seconds);
  updateResults();
}
// Invoked by checkWin(). Display modal message if checkWin() condition is true.
Invoked by checkWin(). Display modal message if checkWin() condition is true.
Invoked by checkWin () . Display modal message if checkWin () condition is true .
function finalMessage() {
  const finalCount = document.getElementById('moves-final-count'),
        seconds = document.getElementById('final-seconds'),
        minutes = document.getElementById('final-minutes');
  winInfo.style.display = 'block';
  finalCount.textContent = moves;
  displayRating(rating);
  printTime(minutes,seconds);
  updateResults();
}
function finalMessage ( ) { const finalCount = document . getElementById ( 'moves-final-count' ) , seconds = document . getElementById ( 'final-seconds' ) , minutes = document . getElementById ( 'final-minutes' ) ; winInfo . style . display = 'block' ; finalCount . textContent = moves ; displayRating ( rating ) ; printTime ( minutes , seconds ) ; updateResults ( ) ; }
Invoked by checkWin().
Invoked by checkWin () .