- Define function A filled with this.myProperties
- Define a function B you want to receive the properties
- myFunctionB = new FunctionB()
myFunctionB will have the properties defined in FunctionA.
This is easy to do, so you can design you own ways of sharing properties among functions.
If you add a property to the prototype ("Batman"), all the children get the same property.
If you add a property to an instance ("bruce"), each instance has its own property.