title: How to set hash key dynamically in javascript
body: <p>With this code, </p>
  
  <pre><code>h = {}
  for (var i in [0,1]){ h[i.ToString] = i; }
  </code></pre>
  
  <p>I expected same result with <code>h["1"] = 1</code> and <code>h["2"] = 2</code>.</p>
  
  <p>Why is this code doesn't work, and how can I define hash key dynamically in javascript?</p>