Using [] after string in javascript
<p>The following alerts 100. I would like it to alert 200 but obviously I'm missing something.</p>

<pre><code>$blah[1] = 100;
function updateBlah(e) {
    $blah[e] = 200;
    alert($blah[e]);
}
updateBlah(1);
</code></pre>
