title: Javascript - Initialize array with nulls
body: <p>In Javascript, why is</p>
  <pre><code>var myArray = new Array(3);
  </code></pre>
  <p>different from:</p>
  <pre><code>var otherArray = [null, null, null];
  </code></pre>
  <p>?</p>
  <p>Obs: <code>(myArray == otherArray)</code> returns <code>false</code>.</p>
  <p>And also, how can I get a variable like <code>otherArray</code>, which is an array full of 'nulls`, but with whatever size i'd like?</p>
  <p><strong>Obs</strong></p>
  <pre><code>[undefined, undefined, undefined] 
  </code></pre>
  <p>is also not equal to myArray.</p>