function acceptCards(){
  let winCards = document.querySelectorAll('div .open');
  comboCounter++;
  cardsCollection = [];
  combo(comboCounter);
  winCards.forEach((card)=>{
    animateCard(card);
    matchedCards++;
  });
}
// Invoked by checkCards(). Increases matchedCards variable.
Invoked by checkCards(). Increases matchedCards variable.
Invoked by checkCards () . Increases matchedCards variable .
function acceptCards(){
  let winCards = document.querySelectorAll('div .open');
  comboCounter++;
  cardsCollection = [];
  combo(comboCounter);
  winCards.forEach((card)=>{
    animateCard(card);
    matchedCards++;
  });
}
function acceptCards ( ) { let winCards = document . querySelectorAll ( 'div .open' ) ; comboCounter ++ ; cardsCollection = [ ] ; combo ( comboCounter ) ; winCards . forEach ( ( card ) => { animateCard ( card ) ; matchedCards ++ ; } ) ; }
Invoked by checkCards().
Invoked by checkCards () .