How to call method from another method in javascript?
Answers
Answered by
0
class MyClass {
myTest() {
console.log('it works');
}
runMyTest() {
self.myTest();
}
}
var myClass = new MyClass();
myClass.runMyTest();
Similar questions