javascript example of function a name by string
Example: js call function by string name
function test() {
console.log('Executed function "test".');
}
window['test']();
function test() {
console.log('Executed function "test".');
}
window['test']();