DEV Community

loading...

Discussion on: JavaScript Quiz Part 2

Collapse
thesudeep profile image
Sudeep Pandey

slice doesn't modify the array and create a new array but splice modified the array