One way to store and call a function later is by assigning it to a variable, like so:
var storedFunction = functionName;
//Later On
storedFunction(); //Equivalent to functionName()
If you want to store a function and also execute 'this' when called, you can do it like this:
var storedFunction = this.function1().function2();
Then, when you call the stored function later, 'this' will refer to the class context:
class MyClass {
method() {
storedFunction();
}
}