Tuesday, August 09, 2011

Two ways of javascript function declaration

1. The first way uses a function name, like:


2. The second way assigns a function without name to a variable, for example:



Here are more details:
http://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname

No comments:

Post a Comment