Stack Data Structures In JavaScript

Опубликовано: 14 Сентябрь 2020
на канале: NoobCoder
708
20

In this tutorial, we are going to be going over the Stack Data Structure using JavaScript. A stack is an abstract data structure which can be implemented using either an array or linked list. A stack must have 2 main methods. A push method which adds the data to the top of the stack. A pop method which returns and removes the data on the top of the stack. A Stack must also adhere to LIFO. Or Last In First Out, which these 2 methods provides