title: JavaScript array's length method
body: <p>Can anyone explain why the second alert says 0 ?</p>
  
  <pre><code>  var pollData = new Array();
    pollData['pollType'] = 2;
    alert(pollData['pollType']); // This prints 2
    alert(pollData.length); // This prints 0 ??
  </code></pre>