You have created two objects that exchange one prototype of the object. Properties of prototype objects are detected when searching for objects; they are not copied to instances of objects at creation.
When assigning a property value to an object, as in
a.my_var = 'this is obj A';
"" , . .