              if (!previousNode)                  return this.addHead(value);              if (!nextNode)                  return this.addTail(value);              var node = new ListNode(value);              node.previous = previousNode;              previousNode.next = 