title: How do I combine 2 javascript variables into a string
body: <p>I would like to join a js variable together with another to create another variable name... so it would be look like;</p>
  
  <pre><code>for (i=1;i&lt;=2;i++){
      var marker = new google.maps.Marker({
  position:"myLatlng"+i,
  map: map, 
  title:"title"+i,
  icon: "image"+i
  }); 
  }
  </code></pre>
  
  <p>and later on I have</p>
  
  <pre><code>myLatlng1=xxxxx;
  myLatlng2=xxxxx;
  </code></pre>