Do you know what will be the output of this code?
JavaScript
const f = function g() {
return typeof g;
};
console.log(f(), typeof g);
Show answer and explanation
The answer is function undefined.
g is bound only inside the function body, which is useful for recursion. Outside, only f exists.