js/app.js
/**
 * @description Flips the clicked card and calls findMatchCards method for further actions
 * @param event
 */
@description Flips the clicked card and calls findMatchCards method for further actions
@param event
@description Flips the clicked card and calls findMatchCards method for further actions @param event
function flipCard(event) {
    const targetElement = event.target;
    if (targetElement.classList.contains('match') || targetElement.classList.contains('open')) {
        return;
    } else {
        updateClass(targetElement, 'open', true);
        updateClass(targetElement, 'show', true);
        findMatchCards();
    }
}
function flipCard ( event ) { const targetElement = event . target ; if ( targetElement . classList . contains ( 'match' ) || targetElement . classList . contains ( 'open' ) ) { return ; } else { updateClass ( targetElement , 'open' , true ) ; updateClass ( targetElement , 'show' , true ) ; findMatchCards ( ) ; } }
@description Flips the clicked card and calls findMatchCards method for further actions
 @param event
@description Flips the clicked card and calls findMatchCards method for further actions @param event