MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript / Node

Class Node

Data-Structures/Linked-List/SinglyLinkedList.js:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9// Methods - size, head, addLast, addFirst, addAt, removeFirst, removeLast, remove, removeAt, indexOf, isEmpty, elementAt, findMiddle, get, clean, rotateListRight
10
11class Node {
12 constructor(data) {
13 this.data = data
14 this.next = null
15 }
16}
17
18class LinkedList {
19 constructor(listOfValues) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected