1. Statement:
1. Normal function declaration:
//Normal function declaration function foo(p1, p2){ return p1+p2; }2. Anonymous function declaration:
//Anonymous function declaration var foo= function(p1, p2){ return p1+p2; }2. Return value:
The return value of an anonymous function is a reference to a Function object.
3. Meaning:
The meaning of the above anonymous function code is to assign a reference to the Function object to the variable foo.
4. Similarities:
After generating a function body (Function object) without a name, give it a name.
The above is the full content of the anonymous functions in JS brought to you by the editor. I hope everyone can support Wulin.com more~