MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / Node

Function Node

lib/data-structures/chapter-2/2_3.js:3–6  ·  view source on GitHub ↗
(data, next)

Source from the content-addressed store, hash-verified

1var SLL = require('./helper.js');
2
3 function Node(data, next) {
4 this.data = data,
5 this.next = next;
6 }
7
8 SLL.prototype.addNode = function(data, next) {
9 var node = new Node(data, next),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected