Start of main content## JavaScript Data Structures

The JavaScript data structures collection includes implementations and examples of some of the most commonly-used data structures. Data structure snippets are best used as a learning resource, as they might require optimizations to run in production.

### Native JavaScript Data Structures

JavaScript provides a handful of native data structures that you can start using in your code right now.

JavaScript, Array · Sep 5, 2021

### JavaScript Data Structures - Queue

A queue is a linear data structure which follows a first in, first out (FIFO) order of operations.

JavaScript, Class · Jul 29, 2021

### JavaScript Data Structures - Stack

A stack is a linear data structure which follows a last in, first out (LIFO) order of operations.

JavaScript, Class · Aug 3, 2021

### JavaScript Data Structures - Linked List

A linked list is a linear data structure where each element points to the next.

JavaScript, Class · Aug 8, 2021

### JavaScript Data Structures - Doubly Linked List

A doubly linked list is a linear data structure where each element points both to the next and the previous one.

JavaScript, Class · Aug 12, 2021

### JavaScript Data Structures - Graph

A graph is a data structure consisting of a set of vertices connected by a set of edges.

JavaScript, Class · Aug 17, 2021

### JavaScript Data Structures - Tree

A tree is a data structure consisting of a set of linked nodes representing a hierarchical tree structure.

JavaScript, Class · Aug 22, 2021

### JavaScript Data Structures - Binary Tree

A binary tree is a hierarchical data structure of linked nodes with at most two children each.

JavaScript, Class · Aug 26, 2021

### JavaScript Data Structures - Binary Search Tree

A binary search tree is a hierarchical data structure of ordered nodes with at most two children each.

JavaScript, Class · Aug 31, 2021

### Frequency Map Data Structure

A custom data structure to keep track of value frequencies in an array.

JavaScript, Class · Nov 13, 2022

### Big-O Cheat Sheet

Learn everything you need to know about Big-O notation with this handy cheatsheet.

JavaScript, Algorithm · Jan 8, 2023