Use variable for property name in JavaScript literal?
<p>I am new to JavaScript and trying to do some experiment with it. I have one question. I know we  can create new properties in Javascript objects during runtime but would that property can be assigned a value too. For example.</p>

<pre><code>var value = "New value";

var table = new Object();

var newValue = table[value];
</code></pre>

<p>Now, I know that value table has a new property called "value". but does that "value key contains the information as " New Value". So, does that mean now table object is like following:</p>

<pre><code>table = {
value:"New Value";
}
</code></pre>

<p>Thanks for your help in advance guys.</p>

<p>-Vik</p>
