Read a specific value from javascript hashmap : <p>I am trying a very basic javascript map example </p>

<pre><code>   var map1 = {'myKey1':11, 'mykey2':22};

   var t = map1['mykey1'];
   alert(t);
</code></pre>

<p>But the alert always gives me 'undefined', it should give me '11'</p>

<p>please guide what i am doing wrong</p>
