I have a function with a name, like this:
function tony {
//do something
}
I also have a variable called currentName with the value 'tony', like this:
var currentName = 'tony';
What I want to know is whether there's any way of activating the tony () function by using the variable currentName eg: +currentName+ (); (but I know that doesn't work)?
Any help would be much appreciated. Thank you.