function combo(num){
  const comboWindow = document.getElementById('combo'),
        comboNumber = document.getElementById('combo-number');
  
  if (num >= 2) {
    comboNumber.textContent = num;
    comboWindow.classList.add('scaleUp');
    setTimeout(()=>{comboWindow.classList.remove('scaleUp')}, 800);
    moves--;
    updateMoves(moves);
    updateRating(moves);
  }
}
/*Invoked by acceptCards().
* Fires combo notifiaction. Updates moves counter.
* @ param {number} num - nubmer to compare and to print in combo notification.
*/
Invoked by acceptCards().
Fires combo notifiaction. Updates moves counter.
Invoked by acceptCards () . Fires combo notifiaction . Updates moves counter .
function combo(num){
  const comboWindow = document.getElementById('combo'),
        comboNumber = document.getElementById('combo-number');
  if (num >= 2) {
    comboNumber.textContent = num;
    comboWindow.classList.add('scaleUp');
    setTimeout(()=>{comboWindow.classList.remove('scaleUp')}, 800);
    moves--;
    updateMoves(moves);
    updateRating(moves);
  }
}
function combo ( num ) { const comboWindow = document . getElementById ( 'combo' ) , comboNumber = document . getElementById ( 'combo-number' ) ; if ( num >= 2 ) { comboNumber . textContent = num ; comboWindow . classList . add ( 'scaleUp' ) ; setTimeout ( ( ) => { comboWindow . classList . remove ( 'scaleUp' ) } , 800 ) ; moves -- ; updateMoves ( moves ) ; updateRating ( moves ) ; } }
Invoked by acceptCards().
Invoked by acceptCards () .