So I am learning on my own, and ran across this code for reversing a linked list:
function reverseLinkedList(linkedList) { let node = linkedList.head; let