Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

invoke method inside class javascript

class MyClass{
  constructor(config) {
    this.config = config;
  }

  async method1(paramA) {
    // do_stuff...
  }

  method2(paramB) {
     this.method1();
  }
}
 
PREVIOUS NEXT
Tagged: #invoke #method #class #javascript
ADD COMMENT
Topic
Name
1+3 =