I am learning JavaScript and trying to check the caller and calle properties of Arguments object.
Here is my code
function showFunc() {
var funcname = arguments.calee.name;
console.log(funcname);
}
showFunc();
Now it displays an error in console saying
Uncaught TypeError: Cannot read property 'name' of undefined
Please tell me where am I going wrong.