how to know which function called log in javascript code example
Example 1: calculate log in javascript
var value = Math.log(2);
Example 2: javascript log where function was called
function Hello() {
alert("caller is " + Hello.caller);
}
var value = Math.log(2);
function Hello() {
alert("caller is " + Hello.caller);
}