Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Stack

A stack is a collection of items that follow the "last in, first out" principle or LIFO. An example of a stack would be putting your clothes on in order or the sites you visit in your browser.

Push

Adds an item to the top of the stack

Pop

Removes an item from top of stack

Peek

View the next item in the stack

Length

Return the length of the stack

isEmpty

Return boolean based on the array being empty or not