so, I have a 2d array, which i decalre like this:
var grille = new Array(60).fill(new Array(30).fill(false));
I want to be able to change the value of one cell in the array, but when i do
grille[x][y] = "new value";
I have all the x array which contains "new value" at the index y, instead of array[x][y].
so i have
grille[1][y] = "new value"
grille[2][y] = "new value"
grille[3][y] = "new value"
instead of
grille[x][y] = "new value"
grille[1][y] = false
for example. It may be a noob error, but i'm very new to javascript and don't know how to do this.
Thanks for your help.