title: Why javascript shows 0 length for array with object property instead of indexed element
body: <p><strong>For Example:</strong></p>
  
  <pre><code>var arr = [];
  arr[3.4] = 1;
  console.log(arr.length);
  </code></pre>
  
  <p>In the above code sample the <code>length</code> property holds zero why and what happened inside JS parser because it's length is zero.</p>