Now we process the next one with the same steps. nextNode = head.next; will store the node to the right.

Step Ten
JAVASCRIPT
OUTPUT
Results will appear here.