Computer >> Computer tutorials >  >> Programming >> Javascript

Linked List representation in Javascript


Linked List representation in Javascript


As per above-shown illustration, the following are the important points to be considered.

  • LinkedList contains a link element called first.
  • Each Link carries a data field(s) and a Link Field called next.
  • Each Link is linked with its next link using its next link.
  • The last Link carries a Link as null to mark the end of the list.