what's the key sequence when enumerating an object in javascript?
<p>I already know <a href="http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">how to enumerate an object in javascript</a>. My question is what's the key sequence while enumerating.Is it by A-Z or time ordered?</p>

<p>code</p>

<pre><code>var a = { 
          "a":""
         ,"b":""
         ,"c":""};
for (var k in a) {
    console.log(k);
} 
</code></pre>

<p>output</p>

<pre><code>a,b,c
</code></pre>

<p>code </p>

<pre><code>var a = { 
          "b":""
         ,"a":""
         ,"c":""};
for (var k in a) {
    console.log(k);
} 
</code></pre>

<p>output</p>

<pre><code>b,a,c
</code></pre>

<p>code </p>

<pre><code>var a = { 
          "b":""
         ,"a":""
         ,"c":""};
a.d = "";
for (var k in a) {
    console.log(k);
} 
</code></pre>

<p>output</p>

<pre><code>b,a,c,d
</code></pre>
