Screens play with settime out function

I want to play screens with set timeout function.I have an array which it will shown against button click. when i click button then it will generate error.Your suggestion would be highly appreciated for me :slight_smile:

self=this;

 this.Tutorial_btn.element.on('mouseup', function(e)
    {

            self.TutorialScreens();


    },this);

};


// CHECK PARTICULAR ANIMATION CHARACTER FACE 

Gooledata.prototype.TutorialScreens=function()
{
    
   
        for(var a = 0; a< tutorialscreens.length; a++)
        {
            hello(a);
        }

        hello = (b) => 
        {
            setTimeout(() => {
                self.tutorialscreens[b].enabled=true;
            }, 5000);
        };
    
};

Where is self defined/declared? Can you post the whole file please?

At the moment it looks like TutorialScreens doesnโ€™t have self defined in the function.

Gooledata.prototype.TutorialScreens=function()
{
    var self = this;
   
        for(var a = 0; a< tutorialscreens.length; a++)
        {
            hello(a);
        }

        hello = (b) => 
        {
            setTimeout(() => {
                self.tutorialscreens[b].enabled=true;
            }, 5000);
        };
    
};