let obj1 = { name: "John" }; let obj2 = { age: 114 }; let newObj = { . . .obj1, . . .obj2 }; // Returns { name: "John", age: 114 }
Pro tip: use ```triple backticks around text``` to write in code fences