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 -

javascript - Chart.js - setting tooltip z-index -

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