title: How to make array at javascript class?
body: <p>Recently I am learning to make javascript class, I saw other people make class like this</p>
  
  <pre><code>var item = {
       'a':{'b':1000,'c':2000,'d':3000} , //how to make a variable become an array?
       myfunction : function(){
           console.log(item.a.b); //and output item.a[1]?
       }
   };
   item.myfunction();
  </code></pre>
  
  <p>But is it possible to make variable <code>a</code> an array? and output a variable <code>item.a[1]</code> like that?I tried</p>
  
  <p><code>var a=new Array('1000','2000','3000')</code> 
  but error, I need a correct syntax.</p>