Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Selector(){
- this.name = 'Selector';
- this.select = function(fName){
- return this[fName]
- }
- this.funcOne = function(arg){
- console.log(arg + this.name)
- }
- }
- var mySelector = new Selector();
- mySelector.select('funcOne')('Hello');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement