- A 7,1
- B 18,1
- C Undefined
- D Error
- Share this MCQ
Answer:
A
Share this MCQ
The Object.assign()
method is used to copy the properties and values from one or more source objects to a target object. It returns the target object. When objects are assigned or copied using Object.assign()
, they are assigned or copied by reference, meaning that the target object and the source object refer to the same underlying object in memory.
Share this MCQ