Javascript – How do I fix "Uncaught TypeError: player[0] is undefined"?
I;m working on a project with the card game War, butI'm having an issue with a variable combined with an array. It says Uncaught TypeError: player[0] is undefined. I tried making player[0][0] into player[0,0], but to no avail, as it…