I am writing Tetris in JavaScript as practice, and i am somewhat confused by the array notation that i am using. Here's the array that i have that stores all my pieces.
var pieces = [[[1,1],
[1,1]],
[[1,0],
[1,0],
[1,1]],
[[0,1],
[0,1],
[1,1]],
[[0,1,0],
[1,1,1]],
[[1,0],
[1,1],
[0,1]],
[[0,1],
[1,1],
[1,0]]];
What is this notation called? How is this difference from just saying "new array()"?
Thank you!