title: How to merge two arrays with latitudes and longitudes to display markers?
body: <p><strong>Arrays to be merged</strong> </p>
  
  <pre><code>var longitudeArray = [];
  var latitudeArray = [];
  </code></pre>
  
  <p>I'm trying to merge the two arrays above to make a third array called <code>locations</code> to access it like the example below to display markers on Google Maps. Any ideas how to merge them both?</p>
  
  <pre><code>position: new google.maps.LatLng(locations[i][1], locations[i][2]),
  </code></pre>