title: Use of JavaScript new Array(n) Declaration
body: <p>Basic JavaScript question: Since there is no hard limit for arrays as the case with Java (i.e. <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html" rel="noreferrer">IndexOutOfBoundsException</a>), what is the use of the declaration where we specify the length property? </p>
  
  <pre><code>var a = new Array(10);
  </code></pre>
  
  <p>I know it predefines the length and puts "undefined" into those empty spots.  Is that reason enough for having it?</p>