Hi,
I need help. I created memory game. I would like to reset attempts. Every clicked pair of cards is equal to 1 attempt.
After clicking on restart button, I want to reset these attempts.
I’ve not checked in detail, but you do seem to be declaring attemptsCount twice; once in the initial variables at the top of the script, and then again in the renderAttempts() function - it doesn’t look like you’re assigning a number to it on the second occasion, neither does there seem to be anything to reset attemptsCount to zero as a part of the code attached to the reset button.