skip to Main Content

JavaScript passing values breaks loop

I have the following code: let j = 0; for(i = 0; i < board[0].length; i++) { j = i; check_row(board[i], i, tiles); i = j; } The board is an array containing 5 arrays of size 5: [[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4],[0,1,2,3,4]] Tiles…

VIEW QUESTION
Back To Top
Search