10
There are no advantages, you aren't placing a function inside a variable you are simply naming the function differently.
function foo() { /* ... */ }
var foo = function () { /* ... */ }
These are exactly the same except for one thing.
This works:
foo("Hello!");
/* Later on... */
function foo() { /* ... */ }
This doesn't work:
foo("Hello!");
/* Later on... */
var foo = function () { /* ... */ }
The JavaScript interpreter will preprocess all function foo's before running and push them to the top of the program so they are available but won't do that with var foo = function's.