call a function by string name javascript code example
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']();