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:
And yes, the first time you call
arry.push, the pair of values will be placed at index 0.
From the nodejs repl:
> var arry = ; undefined > arry.push([1,2]); 1 > arry [ [ 1, 2 ] ] > arry.push([2,3]); 2 > arry [ [ 1, 2 ], [ 2, 3 ] ]
> arry.push(100); 3 > arry [ [ 1, 2 ], [ 2, 3 ], 100 ]