Menu
Hi,
do we have Isa(aggregation) and Hasa(composition) relationships in JS?
though instanceof check passes for all the types of inheritance;they are just changing the references of prototype and shadow
the instance variables, I think instanceof is implemented to return true with references only, instead of really creating the required Object.
This is still fine. But, do we have Hasa relationship ?
Thanks