Javascript var a = function b() {} -
var = function b() { console.log( typeof b === 'function' ); }; a(); // true console.log( typeof b === 'function' ); // false
why second result false?
this named function expression.
its name visible inside function.
for more information, see this article
Comments
Post a Comment