If we create an array of objects using new Array(3).fill({}); and then add any key in any of the objects, it gets reflected in all the 3 objects.
I made an array of obje
You put the same object at 3 different places. It's still the same.
If you want 3 different objects, you may do this for example:
const arr = new Array(3).fill().map(()=>({}));