code: function LinkedList() {
  
    this._length = 0;
    this.head = null;
    this.tail = null;
  
    // Read-only length property
    Object.defineProperty(this, 'length', {
      get: function () {
        return this._length;
      }.bind(this)
    });
  }
docs: Doubly-linked list