JavaScript
JavaScript ArraysJavaScript Arrays
JavaScript arrays store multiple values inside a single variable.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
JavaScript uses arrays to hold lists of data, like a shopping list or a catalog of products. Instead of creating ten different variables for ten cars, developers put all ten cars inside one array.
Example
Example
Key Points
- Arrays use square brackets to hold data.
- Commas separate each item in the array.
- The first item sits at index 0.
- Developers typically declare arrays with `const`.