Skip to main content

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);
    } 
}

I Need to make create dynamic object , I will store all of that objects in a array  . Each object will have some proproety and objects. After the object will be created  , I need to do a auto execute a method from it  . I can't call in my my code like this  : obj.doSomething , beacause 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);
    } 
}

I need to create a dynamic object. I'll store all of these objects in an array. Each object will have some property and objects. After the object is created, I need to do an auto execute method from it. I can't call in my code like this: obj.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);
    } 
}

I Need to make create dynamic object , I will store all of that objects in a array . Each object will have some proproety and objects. After the object will be created , I need to do a auto execute a method from it . I can't call in my my code like this : obj.doSomething , beacause 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);
    } 
}

}

I Need to make create dynamic object , I will store all of that objects in a array . Each object will have some proproety and objects. After the object will be created , I need to do a auto execute a method from it . I can't call in my my code like this : obj.doSomething , beacause 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);
}

}

I Need to make create dynamic object , I will store all of that objects in a array . Each object will have some proproety and objects. After the object will be created , I need to do a auto execute a method from it . I can't call in my my code like this : obj.doSomething , beacause 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);
    } 
}
Source Link

javascript auto call function in object

I Need to make create dynamic object , I will store all of that objects in a array . Each object will have some proproety and objects. After the object will be created , I need to do a auto execute a method from it . I can't call in my my code like this : obj.doSomething , beacause 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);
}

}