Home / Javascript Tips Generated By ChatGPT / Combining Objects with Spread Operator in Javascript Combine or clone objects using the spread operator. Source Code let obj1 = { a: 1, b: 2 }; let obj2 = { ...obj1, c: 3 }; console.log(obj2);