Ugo Mela
0
Q:

invoke method from another method in same object

class MyClass {

    myTest() {
      console.log('it works');
    }

    runMyTest() {
      this.myTest();
    }

}

var myClass = new MyClass();
myClass.runMyTest();
0

New to Communities?

Join the community