title: How to dynamically define arrays in javascript?
body: <p>I need to dynamically create arrays in runtime based on count. For example if I have an source array <code>sourcearr = ['arr1','arr2','arr3','arr4']</code>, the count of the elements of sourcearr is 4 i.e. <code>var count = sourcearr.length</code>, I need something like:</p>
  
  <pre><code>for(i=0;i&lt;count;i++)
  {
      //define 4 dynamic arrays here
      //basically create arr1 = [],arr2 =[], arr3=[],arr4=[]; dynamically.
  }
  </code></pre>
  
  <p>Is there any way to create and then access these arrays dynamically?</p>