How to save java script data from a loop to an array? : <p>How to save javascript data from a loop to an array?</p>

<pre><code>for (i = 0; i &lt; jsonData.Data.Positions.length; i++) {
     var h = jsonData.Data.Positions[i].Oid;
}
</code></pre>
