JavaScript - Named Function Expression


// JavaScript - NFE (Named Function Expression):
function bar(){ return 12; } is different from var bar = function(){ return 12; };

In the first case, bar can be used inside its own definition, but it is not
defined outside itself.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License