I would like to call a method inside a class with a given string, here's an example:
 class A {
    mymethod(){
      console.log("hey");
    }
    anotherMethod(fName){
      return this.fName();
    }
  }
Is this possible in node.js?
I would like to call a method inside a class with a given string, here's an example:
 class A {
    mymethod(){
      console.log("hey");
    }
    anotherMethod(fName){
      return this.fName();
    }
  }
Is this possible in node.js?
 
    
    