title: How can i push an array into another array in jquery
body: <p>I want to create an array like below.</p>
  
  <pre class="lang-js prettyprint-override"><code>var path = [
    [41.02178, 29.26108],
    [41.02196, 29.26067],
    [41.02251, 29.26031],
    [41.02258, 29.26015],
    [41.02267, 29.25926]
  ];
  </code></pre>
  
  <p>In my code I tried this:</p>
  
  <pre class="lang-js prettyprint-override"><code>var loc =[];
  for (var i = 0; i &lt; result.ResponseData.length; i++) 
  {
     loc = [result.ResponseData[i].Latitude, result.ResponseData[i].Longitude];
     path.push(loc);
  }
  </code></pre>
  
  <p>but this is the result:</p>
  
  <pre class="lang-js prettyprint-override"><code>path=[0,0,29.26108,41.02178,29.26067,41.02196,29.26031,41.02251];
  </code></pre>