Where is the immutable binding record of the identifier in a named function expression stored in JavaScript?
问题 Recently I ran into some interesting facts about named function expressions (NFE). I understand that the function name of an NFE can be accessed within the function body, which makes recursion more convenient and saves us arguments.callee . And the function name is not available outside the function body. For example, var foo = function bar() { console.log(typeof bar); }; typeof foo; // 'function' typeof bar; // 'undefined', inaccessible outside the NFE foo(); // 'function', accessible inside