function checkWin(num){
  if (num === cards.length) {
    finalMessage();
    stopTimer();
  }
}
/*
* Invoked by activateCard().
* Check if number of matched cards is equal to overall number of cards in the dec.
* @ param {number} num - value of acceptedCards variable.
*/
Invoked by activateCard().
Check if number of matched cards is equal to overall number of cards in the dec.
Invoked by activateCard () . Check if number of matched cards is equal to overall number of cards in the dec .
function checkWin(num){
  if (num === cards.length) {
    finalMessage();
    stopTimer();
  }
}
function checkWin ( num ) { if ( num === cards . length ) { finalMessage ( ) ; stopTimer ( ) ; } }
Invoked by activateCard().
Invoked by activateCard () .