title: Javascript array with custom variable indexing
body: <p>Is it possible to set the custom index of an array with a variable.</p>
  
  <p>for example:</p>
  
  <pre><code>var indexID = 5;
  var temp = {
      indexID: new Array()
  };
  </code></pre>
  
  <p>The above example sets the array index to <code>indexID</code> and not <code>5</code>. I have tried using <code>=</code> snd quotes but I without any success.</p>
  
  <p>Thnaks</p>