title: How do I create dynamic variable names inside a loop?
body: <p>I'm working on an ajax google maps script and I need to create dynamic variable names in a for loop.</p>
  
  <pre><code>for (var i = 0; i &lt; coords.length; ++i) {
      var marker+i = "some stuff";
  }
  </code></pre>
  
  <p>What I want to get is: <code>marker0</code>, <code>marker1</code>, <code>marker2</code> and so on.
  and I guess there is something wrong with <code>marker+i</code></p>
  
  <p>Firebug gives me this: <code>missing ; before statement</code></p>