title: Declaring an empty array in JavaScript
body: <p>I'm trying to declare an empty array and was just wondering if there are any fundamental differences between these two ways of declaring an empty array. </p>
  
  <p>Can someone please explain the difference between these two:</p>
  
  <pre><code>var myArray = [];
  </code></pre>
  
  <p>and </p>
  
  <pre><code>var myArray = new Array();
  </code></pre>
  
  <p>Thanks in advance!</p>