Re-Implementing a Stack Data Structure in Javascript

Brenn
3 min readDec 27, 2018

This is the second in a series on data structures re-implemented in Javascript. We’re going to look at the Stack structure. The stack is critical in computer science because the stack data structure is actually used extensively by the programming language itself. Every method or function call you make in javascript is placed on a stack (referred to as THE stack) which the language runtime uses to manage program execution.

What is a stack?

--

--