title: JavaScript "associative" array access
body: <p>I have a simple simulated array with two elements:</p>
  <pre><code>bowl[&quot;fruit&quot;] = &quot;apple&quot;;
  bowl[&quot;nuts&quot;] = &quot;brazilian&quot;;
  </code></pre>
  <p>I can access the value with an event like this:</p>
  <pre><code>onclick = &quot;testButton00_('fruit')&quot;&gt;with `testButton00_`
  
  function testButton00_(key){
      var t = bowl[key];
      alert(&quot;testButton00_: value = &quot;+t);
  }
  </code></pre>
  <p>However, whenever I try to access the array from within code with a key that is just a non-explicit string, I get <em>undefined</em>. Do I have somehow have to pass the parameter with the escaped 'key'?</p>