Arrays as Multipurpose Data Structures in JavaScript

In JavaScript the Array object is a very powerful data structure with it you can “simulate” other data structures, like Queues, Stacks, List, etc. There is a list with some of the most important methods of the array object in JavaScript, we going to use them to create/simulate our data structures...