MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / constructor

Method constructor

DSA Javascript/linked_list.js:3–6  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

1class Node {
2 // constructor
3 constructor(element) {
4 this.element = element;
5 this.next = null
6 }
7}
8// linkedlist class
9class LinkedList {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected