const a = [1, 2, 3];
const b = [4, 5, 6];
const combined = [...a, ...b];
console.log(combined);

const user = { name: "Alice" };
const withAge = { ...user, age: 25 };
console.log(withAge);