Object spread places an existing object's properties into a new object. The two outer objects are separate values.
const original = { theme: "dark" };
const copy = { ...original };Replace the direct assignment with a spread copy, then change only profileCopy.city to Umeå. Display both cities.
A spread copy gives the update a different object to change.