Is it possible to run a function whose name is saved in a string?
For example: I have three functions:
function nr1(p0, p1){
/* [...] */
}
function nr2(p0, p1){
/* [...] */
}
function nr3(p0, p1){
/* [...] */
}
and I have a string whose content is a function name, for example:
var a_string = "nr2(27, 42)";
Is it possible to execute the function whose name is stored in the string?