Linked list vs Array in Javascript
问题 So I was playing around with the linked list in JS and came up with the following question: Lets say, that we have an array and a linked list both with 5000 elements. We want to insert new element at index 10. The array way is pretty simple. We insert the new element at the given index and move the rest of the elements one index forward. So I tried doing this with linked list and end it up with the following: Getting the implementation of linked list from Nicholas Zakas and adding additional