-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions in README #1
Comments
Function expression is an anon function, named func expr is a named function and func declaration is the var foo form |
@bevacqua That is definitely not right. The "var foo form" is a function expression. |
Should be more accurate after 6dfed02 |
👍 for the fix, but i still prefer function expressions |
Yeah, that's fine too, but using declarations you won't have to remember to put them before things that need to execute the function |
Yet underneath you show that
var foo = function(){};
is bad whilefoo function(){};
is goodI thought
function expression
is the storing of anonymous or named functions in a variable andfunction declaration
is a named function without a variable assignment.The text was updated successfully, but these errors were encountered: