title: What are the best practices to follow when declaring an array in Javascript?
body: <p>When I need to declare a new array I use this notation</p>
  
  <pre><code>var arr = new Array();
  </code></pre>
  
  <p>But when testing online, for example on <a href="http://jsbin.com/#javascript,html" rel="noreferrer">jsbin</a>, a warning signals me to "Use the array literal notation []."</p>
  
  <p>I didn't find a reason to avoid using the constructor. Is in some way less efficient than using <code>[]</code>? Or is it bad practice?</p>
  
  <p>Is there a good reason to use <code>var arr = [];</code> instead of <code>var arr = new Array();</code>?</p>