Logic understanding

understanding the if condition here a = 0, b=1, c=2 now the if says squares[0] && squares[0] === squares[1] && squares[0] === squares[2] (edited) what does it even mean,[this code is for tic tac toe]
2 Replies
MarkBoots
MarkBoots2y ago
lines include arrays of the cells that have to be same for it to result in a win in the loop, it goes over those arrays and check if the first value, second value and third value are the same
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server