Mark As Completed Discussion

Then we'll do head.next = newHead;, which will set the current node's next to point backwards.

Step Seven
JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment