var f = function g() {
return 23;
};
typeof g();
What is the result of executing Snippet 1 code?
ReferenceError: g is not defined
__match_answer_and_solution__
Why?
When a function expression has a named function it can only be accessed using this name from inside the function itself, but from outside of the function it doesn't exist this is the reason that 'g' trows a Reference Error when is called.
__match_answer_and_solution__