Linked List Data Structure in Javascript

JavascriptWeb DevelopmentFront End Technology

A linked-list is a sequence of data structures which are connected together via links.

Linked List is a sequence of links which contains items. Each link contains a connection to another link. It is one of the most used Data structures. There are some terms we'll be using when creating linked lists.

Node: This represents each element in the linked list. It consists of 2 parts, data and next. Data contains the data we intend to store, while next contains the reference to the next element in the list.

Link: Each next reference is a link.

Head: The reference to the first element is called ahead.

Updated on 15-Jun-2020 09:10:11