There's a difference between assigning an anonymous function to a variable and declaring a named function. It's the difference between:
var funcName = function(){}
function funcName(){}
The problem is that using named functions involves nuances that can be confusing. Generally it's considered idiomatic to just avoid named functions altogether. You can read about some of the nuances here: http://kangax.github.io/nfe/