Using a variable as part of a javascript object property
<p>Another very simple question.</p>

<p>I have some code like this:</p>

<pre><code>var a = {"foo":"bar"};
</code></pre>

<p>Which creates an object called <code>a</code> with a property called <code>foo</code> with value <code>bar</code>.</p>

<p>I'd like to do this:</p>

<pre><code>var propName = "foo";
a = {propName:"bar"};
</code></pre>

<p>And for the two <code>a</code> objects to be the same.</p>

<p>How do I do that?</p>

<p>(Context is that I'm building an object to pass to jQuery's css method)</p>
