local functions in javascript code example
Example: call local function javascript
function x() {
};
x.y = function() { alert('2');};
function z() { x.y(); }
function x() {
};
x.y = function() { alert('2');};
function z() { x.y(); }