Answers for "invoke method from another method in same object"

0

invoke method from another method in same object

class MyClass {

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

    runMyTest() {
      this.myTest();
    }

}

var myClass = new MyClass();
myClass.runMyTest();
Posted by: Guest on September-25-2020

Code answers related to "invoke method from another method in same object"

Browse Popular Code Answers by Language