The spread operator can effectively be used to create a shallow ______ of an object or an array.

  • Copy
  • Clone
  • Reference
  • Duplicate
The spread operator can effectively be used to create a shallow "Clone" of an object or an array. When you use the spread operator, it creates a new object or array with the same values as the original, but it is a separate entity in memory. This is known as a shallow clone.
Add your answer
Loading...

Leave a comment

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