Is it possible to dynamically call an object method with a method name as a string? I would suggest that this is so:
var FooClass = function() { this.smile = function() {}; } var method = "smile"; var foo = new FooClass();
javascript methods oop dynamic invoke
Mikulas Dite Mar 24 2018-12-12T00: 00Z
source share