Is it true that in Javascript the order of the for in
loops is determined by the priority
field in the objects?
var objs={
foo:{priority:0,name:"foo"},
bar:{priority:1,name:"bar"},
}
for(key in objs){
console.log(objs[key].name)
}
First I see bar, then foo.
So is it true?