+ 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

29th Apr 2019, 10:23 AM
Sławek J.
4 odpowiedzi
+ 16
https://medium.freecodecamp.org/lets-clear-up-the-confusion-around-the-slice-splice-split-methods-in-javascript-8ba3266c29ae
29th Apr 2019, 4:01 PM
Shifu
Shifu - avatar
+ 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
30th Apr 2019, 5:51 AM
Mufungo Geeks
Mufungo Geeks - avatar
0
سلام این برنامه چی هست
26th May 2019, 10:47 PM
علی رضایی
علی رضایی - avatar
0
من انگلیسی متوجه نمیشم
26th May 2019, 10:56 PM
علی رضایی
علی رضایی - avatar