Javascript empty 2d JSON

JavaScript
voted: 1
vote
json.net

Generate empty JSON 2d array.

var blocks = [];
for(var x=0; x<64; x++)
{
    blocks[x] = [];
    for(var y=0; y<64; y++)
    {
        blocks[x][y] = 0;
        
        
    }
    
}
JSON.stringify(blocks)
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.