function eventListener(){
    
    for(let i = 0; i<cardsArray.length; i++){
        cardsArray[i].addEventListener("click", cardsFlipping)
       
    };
     
}
//Add event listener each time a card is clicked.
Add event listener each time a card is clicked.
Add event listener each time a card is clicked .
function eventListener(){
    for(let i = 0; i<cardsArray.length; i++){
        cardsArray[i].addEventListener("click", cardsFlipping)
    };
}
function eventListener ( ) { for ( let i = 0 ; i < cardsArray . length ; i ++ ) { cardsArray [ i ] . addEventListener ( "click" , cardsFlipping ) } ; }
Add event listener each time a card is clicked.
Add event listener each time a card is clicked .