Does JavaScript Guarantee Object Property Order?
<p>If I create an object like this:</p>

<pre><code>var obj = {};
obj.prop1 = "Foo";
obj.prop2 = "Bar";
</code></pre>

<p>Will the resulting object <em>always</em> look like this?</p>

<pre><code>{ prop1 : "Foo", prop2 : "Bar" }
</code></pre>

<p>That is, will the properties be in the same order that I added them?</p>
