invoke this method js code example
Example 1: running a function in a function javascript
function runFunction() {
myFunction();
}
function myFunction() {
alert("runFunction made me run");
}
runFunction();
Example 2: js call and apply
func.call([thisArg[, arg1, arg2, ...argN]])