0

I can't seem to understand why my code returns false. I tried googling for answers but found nothing.

let board = [[1,1,1], [1,1,1], [1,1,1]];
for (row of board) {
    console.log(row == [1, 1, 1]) 
}

Even though every "row" is [1,1,1] it logs false. Why is this?

0 Answers0