Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `merge(a, b)` returning a new object combining both, where keys in `b` override keys in `a`.
+ 1 hidden test run on Submit.
{ ...a, ...b } shallow-merges with b overriding a, without mutating either input.
Run your code to see results.