title: Javascript array length not working
body: <p>So I have this array:</p>
  
  <pre><code>[first_name: false, last_name: false, email: false, month: false, day: false, year: false, password: false, password2: false]
  </code></pre>
  
  <p>Now I if I do this <code>console.log(arrayName.length)</code> it will return 0; why? What I'm doing wrong?</p>
  
  <p>//LE</p>
  
  <p>This is how I do it:</p>
  
  <pre><code>var errors = {};
   $('.register-front').delegate('button','click',function(){
    var $this = $(this).parent().parent().parent();
    $this.find('input,select').each(function(){
      if(!$(this).val() || ($(this).val() == '-1'))
      {
        errors[$(this).attr('name')] = false;
      }
    });
    console.log(errors.length);
    return false;
   });
  </code></pre>
  
  <p>I made some changes but I still don't get it....</p>