title: array.push(element) vs array[array.length] = element
body: <p>I was wondering if there is a reason to choose </p>
  
  <pre><code>array.push(element)
  </code></pre>
  
  <p>over </p>
  
  <pre><code>array[array.length] = element
  </code></pre>
  
  <p>or vice-versa.</p>
  
  <p><a href="http://jsfiddle.net/GmQCg/" rel="nofollow">Here's a simple example</a> where I have an array of numbers and I want to make a new array of those numbers multiplied by 2:</p>
  
  <pre><code>var numbers = [5, 7, 20, 3, 13];
  
  var arr1 = [];
  var len = numbers.length;
  for(var i = 0; i &lt; len; i++){
      arr1.push(numbers[i] * 2);
  }
  alert(arr1);
  
  var arr2 = [];
  for(var i = 0; i &lt; len; i++){
      arr2[arr2.length] = numbers[i] * 2;
  }
  alert(arr2);
  </code></pre>