How to use push with sub-arrays?
<p>I have 3 arrays like:</p>

<pre><code>var arr1 = [];
var arr2 = [];
var arr3 = [];

//When I want to add something into array then I use
arr1.push("text");
arr2.push("text");
</code></pre>

<p>but is it possible to make something like the following example?</p>

<pre><code>//example:
var arr = [];

arr['group1'].push("text1");
arr['group2'].push("text2");
arr['group2'].push("textn");

//and then iterate like:

for(item in arr['group1'])
  console.log(item);
</code></pre>

<p>is it even possible to do something like that? I have tried but does not work.</p>
