
On the other hand, we may want to prepend
nodes-- that is, add to the start, before the head
node.
To prepend
nodes, we can create a new node, and set its next
to our current head. This will introduce a new entity in the beginning of our links:
xxxxxxxxxx
4 -> 5 -> 6
newNode = 3
3 -> 4 -> 5 -> 6
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment