DEV Community

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

Collapse
 
elpheno profile image
Pheno

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.

Collapse
 
thebuildguy profile image
Tulsi Prasad

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. 😛