title: Array like in object
body: <p>I wonder if this object code is seemly correct usage to have group1 emulate an array like? I would avoid using array to avoid error.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var group1={}
  group1[0]={}
  group1[0].fruits="Apple"
  group1[0].qtystock1="1"
  group1[1]={}
  group1[1].fruits="Durian"
  group1[1].qtystock4="2"
  group1[2]={}
  group1[2].fruits="Orange"
  group1[2].qtystock1="3"
  console.log(group1[0].qtystock4) //Should give "undefined"</code></pre>
  </div>
  </div>
  </p>