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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -