js call function in function code example
Example 1: javascript function call with variable
function abc() {
alert('test');
}
var funcName = 'abc';
window[funcName]();
Example 2: how to call a function in JavaScript
// calling our function
displayGreeting();