Computer Science, asked by bhaskar6305, 1 year ago

How to call method from another method in javascript?

Answers

Answered by aravinthveer006
0

class MyClass {


   myTest() {

     console.log('it works');

   }


   runMyTest() {

     self.myTest();

   }


}


var myClass = new MyClass();

myClass.runMyTest();

Similar questions