title: Javascript arrays undefined values
body: <p>I have some code that produces undefined values in an array making no sense.</p>
  
  <p>here is the code:</p>
  
  <pre><code>gcc_py = 8;
  gcc_pyd = 12;
  var aci = 360/gcc_pyd;
  var parcalar = new Array();
  var renkler = new Array();
  
  for(var i = 0;i&lt;gcc_pyd;i++){   
      parcalar.push(aci);
      renkler.push('#000');
  }
  
  console.log(parcalar);
  console.log(renkler);
  </code></pre>
  
  <p>console.log(parcalar) outputs this:</p>
  
  <blockquote>
    <p>[
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , 
    Object
    , undefined × 2]</p>
  </blockquote>
  
  <p>do you have any idea for the undefined values in the array?</p>