+ 11
Diffrences between slice, splice, pop and split?
What are the diffrences between slice, splice, pop and split? Because sometimes I am confused in challenges... https://code.sololearn.com/Wq8LxiDcXFCh/?ref=app
4 Answers
+ 16
https://medium.freecodecamp.org/lets-clear-up-the-confusion-around-the-slice-splice-split-methods-in-javascript-8ba3266c29ae
+ 7
The link given by Atlas Hamington is a good one look at that one. It left out "pop" which in general removes the last element of an array and returns it.
var numbers = [1,2,3,4];
var lastdigit = numbers.pop();
The value of lastdigit is 4
0
سلام این برنامه چی هست
0
من انگلیسی متوجه نمیشم