The spread operator can be used to merge two ______ into a new one, combining their properties.
- Arrays
- Objects
- Strings
- Functions
The spread operator can be used to merge two "Objects" into a new one, combining their properties. It's a useful way to create a new object with properties from multiple source objects.
Loading...
Related Quiz
- What is the primary difference between null and undefined in JavaScript?
- Which of the following is an example of an Object Document Mapper (ODM) for MongoDB in Node.js?
- You need to develop a function that takes an array of numbers and returns a new array containing only the unique numbers. What approach would you use to filter out the duplicates?
- In JavaScript, objects created using object literal syntax are instances of ______.
- What will happen if you try to destructure properties not present in the object?