I Needneed to make create a dynamic object , I will. I'll store all of thatthese objects in aan array . Each object will have some proproetyproperty and objects. After the object will beis created , I need to do aan auto execute a method from it . I can't call in my my code like this : obj.doSomething , beacauseobj.doSomething because some users have 2 objects , and other users 300 objects.
Something like this :
class Select {
constructor(el,input){
this.el = el;
this.input = input
}
AutoExecture(){
// I need these function to execute immediately;
console.log(this.input);
}
}