diff --git a/chapter05/01-Linked-List.js b/chapter05/01-Linked-List.js index 76556c09..51861443 100644 --- a/chapter05/01-Linked-List.js +++ b/chapter05/01-Linked-List.js @@ -138,7 +138,7 @@ function LinkedList() { string = ''; while (current) { - string = current.element; + string += current.element; current = current.next; } return string;