Something confuses me in prototyping in JS.
Suppose I have an object like this:
Now I want to create another object that inherits the properties of 'a'.
So, in this situation, I will link the proto of my 'obj' with the proto of 'a', which will reference Object.prototype. The first question is whether the link removes obj. proto to replace with. proto ?
Now let's assume that:
I would think that it updates the "a" in memory by deleting its links.
So, if I do this:
false. "obj" b (obj.b print 1). ?