First of all Hello to everyone, and sorry for my English.
I would still take advantage of the expertise and availability of this community.
Although I have read many posts, my ignorance does not allow me to understand a fundamental concept.
My doubts regarding the difference between anonymous vs named function expression.
I kow the differences between function declaration and expression like:
function foo(){alert ('Hello')}
var foo=function(){alert ('Hello')}
but i don't uderstand the differences between
N1: var foo=function {alert ('Hello')}
N2: var foo=function foo(){alert ('Hello')}
N3: var foo=function bar(){alert ('Hello')}
If is possible i would know when is appropriate to use the first or second function and what are the implications of this choice.
i've read many posts like This
or This
or This
but in these post is always explained what i already know: the difference between function declaration and expression not between anonymous vs named function expression.
Please could someone solve the doubts of this ignorant (me) with some examples? Any example or suggestions will be read with pleasure, thank you all in advance.