SyntaxFix
Write A Post
Hire A Developer
Questions
you can do it like this:
function MyClass() { this.abc = function() { alert("abc"); } } var myObject = new MyClass(); myObject["abc"]();