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 - Unusual behaviour when drawing lots of images onto a large canvas -

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

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