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

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -