DEV Community


Discussion on: The last piece of explanation on slice vs splice

elpheno profile image

Thank so much. I ´ m nubie i can confirm that it’s well explained.
But i think you should specify for the slice method the last index is for the element at this index-1.
My english is not top but The idea to show that the last is for the precedent element.

heytulsiprasad profile image
Tulsi Prasad Author

Thank you, Pheno. I'll mention that in an edit, however I hope the diagram is consice. As a matter of fact, also I'm not a native English speaker, but I just love to write more. 😛