Javascript – How and why parent variable targeting the last node? Has there any reference changed?
I do understand what happens there. But I want to visualize the whole steps. Let me clarify: list and head are stored across the stack with reference and pointed to the same object. okay. when it performs list.next = {…