Question Bank

JavaScript Merge Two Objects: Three Approaches Quiz

Difficulty: Medium

Three seeded ways to merge two plain objects (spread, `Object.assign`, and a manual `for...in` copy), plus two companions on shallow-vs-deep semantics and on which approaches mutate the target.