+ 2
In this code I found with slice what does the 5 stand for?
And why is the result the same when I take out 5 and what does 5 stand for I thought arrays were counted with index at 0? https://code.sololearn.com/WN2D0dv50at6/?ref=app
2 odpowiedzi
+ 17
Try playing around with it by using different numbers e.g. 2 and 3, 2 and 4
Let me know what you find out
+ 7
https://www.w3schools.com/jsref/jsref_slice_array.asp
3 start
5 end