Declare an empty two-dimensional array in Javascript?
You can just declare a regular array like so: var arry = []; Then when you have a pair of values to add to the array, all you need to do is: arry.push([value_1, value2]); And yes, the first time you call arry.push, the pair of values will be placed at index 0. From the nodejs … Read more