What does the object[foo] term mean?
<p>I'm confused what the <code>object[foo]</code> term is referring to.  Any hints?  I know that <code>bar['unique_prop']</code> and <code>bar.unique_prop</code> refers to <code>2</code></p>

<pre><code>    var foo = {unique_prop: 1};
    var bar = {unique_prop: 2};
    var object = {};
    object[foo] = 'value';
    alert(object[bar]);
</code></pre>

<p><a href="http://jsfiddle.net/Y4gJf/" rel="nofollow">code on jsfiddle</a></p>
