I would like to have a Javascript object obj that contains an array of other objects and is able to call their methods. I would also want any object to be able to register into the array by calling a special function of the object obj and pass a reference of itself as an argument.
Would anybody be so kind and help me with that, please? I've been having a hard time with it.
Also I thought of a simple solution where the object obj creates all the other objects but that doesn't seem to work as well...