Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testObject = {
- function function1() {
- alert('function2');
- },
- function function2() {
- alert('function2');
- }
- }
- var functionName = 'function1';
- //Should call testObject.function1()
- testObject.functionName();
-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement