javascript - var functionName = function() {} vs function functionName() {} - Stack Overflow
Speaking about the global context, both, the var statement and a FunctionDeclaration at the end will create a non-deleteable property on the global object, but the value of both can be overwritten. The subtle difference between the two ways is that when t...