Is it possible to use a variable's value as an object key inside object declaration?
<p>I want to do something along these lines:</p>

<pre><code>var firstName = "alan";
var secondName = "antonella";
var statusOfPeople = {
    firstName: "excellent",
    secondName: "superb"
};
console.log(JSON.stringify(statusOfPeople));
</code></pre>

<p>And get this output:</p>

<pre><code>{ "alan": "excellent", "antonella": "superb" }
</code></pre>

<p>Is this possible? Without doing this?</p>

<pre><code>var statusOfPeople = {};
statusOfPeople[firstName] = "excellent";
statusOfPeople[secondName] = "superb";
</code></pre>
