Arrays are a special kind of objects, with numbered indexes.
When to Use Arrays. When to use Objects.
- You should use objects when you want the element names to be strings (text).
- You should use arrays when you want the element names to be numbers.