var x;
var mycars = new Array();
mycars[3] = "Saab";
mycars[1] = "Volvo";
mycars[0] = "BMW";
for (x in mycars)
{
document.write(mycars[x] + "<br />");
}
all major browsers (IE, FF, O, S) sort items by the order when the item was added into array (Saab, VOlvo, BMW)
however Chrome sorts items...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.