call stack javascript code example
Example 1: javascript dump strack trace
console.trace();
Example 2: call local function javascript
function x() {
};
x.y = function() { alert('2');};
function z() { x.y(); }
console.trace();
function x() {
};
x.y = function() { alert('2');};
function z() { x.y(); }