title: Javascript 2d array initialization
body: <p>I am plotting a data set using javascript.flot library and jquery. The libraary require to pass a [[x1,y1], [x2, y2], [x3, y3]] pairs to the plot function. I used the following code to initialize the array d2 for plot:</p>
  
  <pre><code>                    var d2=[];
                       for(var i=0; i&lt;9; i++) {
                           d2.push([myx[i], myy[i]]);
                       }
  </code></pre>
  
  <p>where myx and myy are 1d arrays
   of x and y values resp.</p>
  
  <p>This doesnot work. i m unable to troubleshoot. What is wrong with my code or if it is a browser problem.</p>