The preferred way to access and create an object's properties?
<p>In Javascript, you can create an object with a property <code>name</code> this way:</p>

<pre><code>var person = { name: "Tucker" };
</code></pre>

<p>But also that way:</p>

<pre><code>var person = { "name": "Tucker" };
</code></pre>

<p>Are these two equivalent? Which one is preferred?</p>

<p>Same goes with accessing a property:</p>

<pre><code>person["name"] = "Dale";
</code></pre>

<p>vs.</p>

<pre><code>person[name] = "Dale";
</code></pre>

<p>In <code>Eloquent JavaScript</code>, the author says that <code>The part between the brackets can be any expression. It is converted to a string to determine the property name it refers to.</code>.</p>

<p>So, I guess directly putting a string between the brackets would be considered best practice.</p>

<p>Last but not least, properties can be accesses by using the dot notation:</p>

<pre><code>person.name = "Dale";
</code></pre>

<p>if the property is a valid variable name. Does it actually makes sense to use this notation over the seemingly more flexible bracket notation?</p>
