title: pushing values in a array javascript
body: <p>I have this array of (x,y) values and I want to change the form in to(x:,y:). I tried to initialize data to rows and to an emplty array but it didnt work.</p>
  
  <pre><code>                var rows = new Array(
                  Array(0,0),
                  Array(90,90),
                  Array(59,70),
                  Array(65,77),
                  Array(85,66)
                   );
  
              for (var i =0; i &lt; rows.length; i++) {
             data.push({x: rows[i][0], y: rows[i][1]});
            }
  </code></pre>
  
  <p>how to initialize data array in order to have the wanted array.</p>