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

Class Node

Data-Structures/Tree/AVLTree.js:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84// creates new Node Object
85class Node {
86 constructor(val) {
87 this._val = val
88 this._left = null
89 this._right = null
90 this._height = 1
91 }
92}
93
94// get height of a node
95const getHeight = function (node) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected