Javascript – function with && and || comparing items within an array returns true, even outside the combinations
I am making a tic-tac-toe with HTML, CSS and JavaScript. To the result verification, I am using two arrays, one counting the "X" moves, and the other couting the "O" moves with its id numbers. And an IF block, using…