Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Array

Also written: arrays

A list that stores items side by side in numbered slots, so reading any index is O(1). Adding or removing at the front is slow because every item must shift.

Where the book teaches it

Related terms

Dynamic arrayShifting