I see that in the answer of
which is doing something like
var foo = function foo(param) {
...
}
in that particular case, why do that instead of just using
function foo(param) {
...
}
? What is the advantage or motivation of doing that?