Possible Duplicate:
Elements order - for (... in ...) loop in javascript
Assume you have code like this:
var a = {}
a.a = 1;
a.c = 2;
a.b = 3;
for (var i in a) {
console.log(a[i]);
}
Are 1, 2, and 3 guaranteed to be printed in that order? I've tested and this has been the case so far, but I don't know if it'll always be true. Is there any browser which does not do this? There's nothing weird going on, like deleting things, prototype inheritance, etc. Just adding properties to an object.