title: Why is arr = [] faster than arr = new Array?
body: <p>I ran this code and got the below result. I curious to know why <code>[]</code> is faster?</p>
  
  <pre><code>console.time('using[]')
  for(var i=0; i&lt;200000; i++){var arr = []};
  console.timeEnd('using[]')
  
  console.time('using new')
  for(var i=0; i&lt;200000; i++){var arr = new Array};
  console.timeEnd('using new')
  </code></pre>
  
  <ul>
  <li><strong>using <code>[]</code>: 299ms</strong></li>
  <li><strong>using <code>new</code>: 363ms</strong></li>
  </ul>
  
  <p>Thanks to <a href="https://stackoverflow.com/users/419970/raynos">Raynos</a> here is a <a href="http://jsperf.com/literal-vs-new-23" rel="noreferrer">benchmark</a> of this code and some more possible way to define a variable. </p>
  
  <p><img src="https://i.stack.imgur.com/lVSwX.png" alt="enter image description here"></p>