Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Stack

Also written: stacks

A last-in, first-out pile where you push and pop at the top only. It suits undo and bracket checking.

Where the book teaches it

Related terms

Push, pop, peekFIFO, LIFOCall stack