title: jQuery- Use variable name in each loop to name new variable
body: <p>I have an array of items, and I am trying to assign a variable name based on each of the array's item names. For example, if the array has the values: </p>
  
  <pre><code>var thearray = {};
  thearray['0'] = 'car';
  thearray['1'] = 'boat';
  thearray['2'] = 'truck';
  </code></pre>
  
  <p>I want to end up with three variables, named <code>car_output, boat_output, truck_output</code>.</p>
  
  <p>They will all contain the same data. Here is how I'm trying to do it:</p>
  
  <pre><code>$.each(thearray, function(index, value) { 
      var value+'_output' = 'stuff...'; // something not right
  });
  </code></pre>
  
  <p>Something is not right with the way I'm trying to name each variable. Any ideas?</p>