Two names, one thing
Change an object through one variable and it changes "everywhere". That surprises everyone once. Objects are passed by reference — let's master copying and protecting them.
References and shallow copies
const a = { name: "Sita", tags: ["admin"] };
const b = a;
b.name = "Gita";
console.log(a.name);
const c = { ...a };
c.name = "Mina";
c.tags.push("editor");
console.log(a.name, a.tags);
console.log({ x: 1 } === { x: 1 });