Skip to content
Advertisement

Tag: prototype

Javascript prototype from instance

I would like to make objects, with earlier created objects as the prototypes. This way I would be able to make additions to existing objects without modifying them. Methods which interact with the earlier created objects (so using there attributes and perhaps mutating them) could also be applied to the newly derived objects. I thought this could be done with

Advertisement