DEV Community

Shirllie
Shirllie

Posted on

Introduction to Data Structures and Algorithms With Modern JavaScript. 

JavaScript being the language of the most popular language of the web has includes arrays, queue, stack and linked list. This is what we will be talking about.
Starting with arrays they are special variables, which can hold more than one value.
i.e const cars = ["Mercedes", "VW", "RangeRover"];

An array can hold many values under a single name, and you can access the values by referring to an index number. i.e
const cars = [];
cars[0]= "Mercedes";
cars[1]= "VW";
cars[2]= "RangeRover";

Top comments (0)