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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -