function dismisCards(){
  for (let i = 0; i < cards.length; i++) {
    setTimeout(()=>{cards[i].classList.remove('open','show','flip'), cardsCollection = []},1000);
  }
  comboCounter = 0;
}
// Invoked by checkCards(). Remove css classes from cards in cardsCollection array.
Invoked by checkCards(). Remove css classes from cards in cardsCollection array.
Invoked by checkCards () . Remove css classes from cards in cardsCollection array .
function dismisCards(){
  for (let i = 0; i < cards.length; i++) {
    setTimeout(()=>{cards[i].classList.remove('open','show','flip'), cardsCollection = []},1000);
  }
  comboCounter = 0;
}
function dismisCards ( ) { for ( let i = 0 ; i < cards . length ; i ++ ) { setTimeout ( ( ) => { cards [ i ] . classList . remove ( 'open' , 'show' , 'flip' ) , cardsCollection = [ ] } , 1000 ) ; } comboCounter = 0 ; }
Invoked by checkCards().
Invoked by checkCards () .