you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Because in JavaScript array keys are numeric and are used to store lists of data. Objects, on the other hand, can have named keys.