diff --git a/Data Structures/Linked List/DoublyLinkedList.js b/Data Structures/Linked List/DoublyLinkedList.js index 00931a2d7..aca5b7eb7 100644 --- a/Data Structures/Linked List/DoublyLinkedList.js +++ b/Data Structures/Linked List/DoublyLinkedList.js @@ -12,9 +12,7 @@ function doubleLinkedList() { //Add new element this.append = function(element) { - let node = new Node(element), - current = head, - previous; + let node = new Node(element); if(!head){ head = node;