What are array lists?

An array list is a list where each list item can be accessed with an index number (like the elements of an array). A JavaScript array represents the logical data structure of an array list. Using the term “array” instead of “JavaScript array” creates a terminological ambiguity. To keep it simple during this lesson, we’ll say “array” when we mean “JavaScript array” for the most part.

A variable may be initialized with a JS array literal, like this:

Get hands-on with 1200+ tech skills courses.