Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

difference between slice and splice

splice() method changes the original array. 
slice() method doesn't change the original array.

both returned selected elements.
 
PREVIOUS NEXT
Tagged: #difference #slice #splice
ADD COMMENT
Topic
Name
3+9 =