[[0,0,0], [0,0,0], [0,1,0]]
and I want it to be displayed somewhat like this in js:
It’s important that the table adapts to the array, so if I have
[[0,1,0,0], [0,0,0,0], [0,1,0,0]]
it should have one more row. Do I need to type out the table by hand or can I do something like a for loop that adds a square for every item in the array?