title: How to access  object using dynamic key?
body: <p>How to access an object using a variable as key. Here is my code sample:</p>
  
  <pre><code>var o = {"k1": "111", "k2": "222"};
  alert(o.k1); //working fine
  var key = "k"+1; alert(key); // k1
  alert(o.key); //not working
  </code></pre>