is it deference between function description like that FunctionName = function(containerId,filename,varname){ bla bla} and function FunctionName(containerId,filename,varname) {bla bla}
@rnd_meJun 15.2010 — #[CODE][COLOR="Red"]FunctionName =[/COLOR] function [B]FunctionName [/B](containerId,filename,varname){ bla bla} and function FunctionName(containerId,filename,varname) {bla bla} [/CODE]
the red turns a function statement into a function expression. There are subtle differences. you can also name a function statement, as the bold text shows. The big practical diff is outside the function is the immediate and direct assignment to a var, rather than having the function name become a lexically scoped variable automatically .
you can use a function statement before it appears in source-order, but function expressions need to reached first, just like other vars.
also, function statements can be cached by the JS engine, whereas expression get re-eval'd each time they are reached.