calling function inside another function javascript code example
Example 1: running a function in a function javascript
function runFunction() {
myFunction();
}
function myFunction() {
alert("runFunction made me run");
}
runFunction();
Example 2: call local function javascript
function x() {
};
x.y = function() { alert('2');};
function z() { x.y(); }