title: Add array to array in javascript?
body: <p>How do I add an array to array with variables &amp; functions?</p>
  
  <pre><code>var ranges = new Array();
  fulldate='2012/06/11:2012/10/23|2012/03/11:2012/05/23'.split('|');
  
  for(var i=0; i&lt;fulldate.length; i++) {
      adate=fulldate[i].toString().split(':');
  
      startdate=adate[0].toString().split('/');
      enddate=adate[1].toString().split('/');
  
      //***This area****************************
      ranges.push = ({ start: new Date(startdate[0],startdate[1]-1,startdate[2]), end: new Date(enddate[0],enddate[1]-1,enddate[2]) });
      //***This area****************************
  }
  </code></pre>