Beginner
JavaScript
Q38 / 100
What does Object.assign() do?
Correct! Well done.
Incorrect.
The correct answer is B) Copies own enumerable properties from source objects to a target object
B
Correct Answer
Copies own enumerable properties from source objects to a target object
Explanation
Object.assign({}, obj1, obj2) creates a shallow merge. It mutates and returns the target object.
Progress
38/100