The spread operator can be used in ES6 to clone an array without ________ the original array.

  • Modifying
  • Changing
  • Altering
  • Mutating
The spread operator can be used to clone an array without mutating the original array. It creates a shallow copy, meaning nested objects are still references, but the outer array is a new instance.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *