en.javascript.info
en.javascript.info copied to clipboard
Missing line of code
According to this SVG:
...There should be one more line in the code below:
let list = { value: 1 };
list.next = { value: 2 };
list.next.next = { value: 3 };
list.next.next.next = { value: 4 };
@@ list.next.next.next.next = null; @@
// prepend the new value to the list
list = { value: "new item", next: list };