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
Computer Science,
7 months ago
Political Science,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago
Biology,
1 year ago