I have created 2 arrays, answeredArr
andcorrectArr
; to hold info for a game. The first time the game is completed I copy the correct answers array to the answers array:
answeredArr = correctArr;
After this point, every time I answeredArr.push(variable);
, correctArr
is updated as well.
There is a lot of code, so I'm reluctant to post it all.