> For the complete documentation index, see [llms.txt](https://notes.danfitz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.danfitz.com/javascript/algorithmsdatastructures/k-data-structures-introduction.md).

# Data Structures Introduction

**Data structures** are basically just collections of values with relationships among them and functions/methods that can be applied to the data. Arrays and objects are built-in data structures.

For example, arrays store data in a sorted order. They also come with built-in methods like `filter` or `reverse` that are inherited from the `Array` prototype.

In the same vein, we will be creating custom data structures by defining our own **classes**. Instances of these classes will organize the data in specific ways and will inherit methods and properties that allow us to manipulate the data.
