Using the push method or .length when adding to array?
<p>What are the downsides to doing:</p>

<pre><code>var myArray = [];
myArray[myArray.length] = val1;
myArray[myArray.length] = val2;
</code></pre>

<p>instead of:</p>

<pre><code>var myArray = [];
myArray.push(val1);
myArray.push(val2);
</code></pre>

<p>I'm sure the push method is much more "acceptable", but are there any differences in functionality?</p>
