You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below should be refactor into its own function so that we can call it on game start or game reset.
// this function toggles the pokemon card on clickletcards=document.querySelectorAll('.card');cards.forEach(card=>{card.addEventListener('click',()=>{if(!(card.classList.contains('visible'))){card.className='card visible'}else{card.classList='card'}})})
The text was updated successfully, but these errors were encountered:
The code below should be refactor into its own function so that we can call it on game start or game reset.
The text was updated successfully, but these errors were encountered: