title: How to rename similarly-named variables in a for loop
body: <p>I have recreated a situation at basic level in this fiddle: <a href="http://jsfiddle.net/5Y5FN/74/" rel="nofollow">http://jsfiddle.net/5Y5FN/74/</a>. I have a few variables that end with a number:</p>
  
  <pre><code>var var1;
  var var2;
  var var3;
  </code></pre>
  
  <p>How can I use these variables in a way where I'm iterating through them in a <code>for</code> statement by changing the number at the end of the variables name? Is it even possible to do so? The goal would to be to change each variable's value to 3. Here are some ways I tried to do it:</p>
  
  <pre><code>var(1), var[2], var+'3'
  </code></pre>