title: add for loop results to an empty array
body: <p>I have a for loop that goes through a series of data. I would like to store the result of elevations[i].elevation*3.28084; in an array. Right now it only has one value outside of the loop.</p>
  
  <pre><code>     var data2 = [];
  
  
       for (var i = 0; i &lt; elevations.length; i++) {
          data2 = elevations[i].elevation*3.28084; // convert meters to feet        
      }
  </code></pre>