A Quick Guide To Stacks In JavaScript

Understanding And Implementing Stacks

Kenneth Young
Nov 3 · 5 min read
Stacks — image by Gabriela Rivera Mejias © 2019

What are Stacks?

Stacks are a way to structure data. They are based on the concept of LIFO (Last In First Out). They can be implemented in various ways (which will be covered later on) but the idea is that you have 2 ways of interacting with the data: push an element on top of the stack or remove an…

Kenneth Young

Written by

I am a programming enthusiast that likes to develop solutions and teach others how to write their own code. Check out my portfolio at kenneth-young.com

JavaScript in Plain English

Learn the web's most important programming language.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade