Possible Duplicate:
JavaScript: var functionName = function() {} vs function functionName() {}
What’s the difference in those declarations (in JavaScript)?
Is there any differences between the following function declarations:
function wtf() {
}
lol = function() {
}
omg: function() {
}
?
Regards
1- Is a regular function declaration.
2- You declare an anonymous function and you store it in a variable.
3- The last one is part of an object notation :