I want to create a two dimensional array in Javascript where I\'m going to store coordinates (x,y). I don\'t know yet how many pairs of coordinates I will have because they
No need to do so much of trouble! Its simple
This will create 2 * 3 matrix of string.
var array=[]; var x = 2, y = 3; var s = 'abcdefg'; for(var i = 0; i