Junior JavaScript

What is the difference between slice() and splice()?

Method Mutates Original? Purpose

slice(start, end) ❌ No Extracts portion

Follow me on LinkedIn:

splice(start, count,

...items)

✅ Yes Adds/removes

items

More from JavaScript Tutorial

All questions for this course