I have this test class, whenever i call methodfinal in my controller.js the console.log doesn’t show up? why is that happening?
class Test {
methodFinal() {
this.method1and2();
}
method1and2() {
this.method1();
this.method2();
}
method1() {
console.log('test');
}
method2() {
console.log('test');
}
}
export default new Test();
This is my my controller
import Test from './test.js';
Test.methodFinal();