title: How to create array of object in node.js
body: <p>My Class look like this:</p>
  
  <pre><code>var Coin = {
      _id: null,
      createGame: function(id) {
       this._id = id;
      },
      start: function() {
  
      }
  };
  </code></pre>
  
  <p>I'm trying to create an array of objects, but I can create only one.
  Could someone tell what i'm doing wrong?</p>
  
  <p>I create array like this:</p>
  
  <pre><code>CoinArray = [];
  CoinArray['123'] = new Coin.createGame(123);
  CoinArray['333'] = new Coin.createGame(333);
  CoinArray['333'].start
  </code></pre>
  
  <p>At the end I want to have array with object and for example I will take first el of array, and execute other method from Coin class. </p>