wesbos / Wes-Bos-Video-Notes

These are notes that supplement the videos on Wes Bos Courses
73 stars 301 forks source link

Update 47 - Array Cardio - Instance Methods - 375674172.md #45

Open dj51234 opened 11 months ago

dj51234 commented 11 months ago

toppingsCopy.splice(3,5) actually starts at index 3 and removes 5 items. If you want to take items 3 through 5 out you would just start at the 2nd index (because it is the 3rd item) and the second argument would be 3, to remove 3 items: toppingsCopy.splice(2,3)