Now newHead = head; will store the current node, to be used as the new next later.

Step Eight
JAVASCRIPT
OUTPUT
Results will appear here.