Linked List and "Node" Constructor Functions
https://subscription.packtpub.com/video/programming/9781800206878/p2/video2_2/-linked-list-and-node-constructor-functions
JavaScript
function LinkedList() {
this.head = null;
this.tail = null;
}
function Node(value, next, prev) {
this.value = value;
this.next = next;
this.prev = prev;
}
var LL = new LinkedList()
console.log(LL)
var node1 = new Node(100, "node2", null)
console.log(node1)