Skip to content
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

Parentheses & Blocks, Function Expressions vs. Function Declarations #19

Open
LogicalTime opened this issue Apr 7, 2015 · 0 comments
Open

Comments

@LogicalTime
Copy link
Owner

The Parentheses (formally called the Grouping Operator) can surround only expressions, and a function expression is evaluated.

Return Here- lots to read:
http://kangax.github.io/nfe/

Function Expressions vs Function Declarations
Really nice example:
Why does this work: (function(){})(); but this doesn't: function(){}();
Two excellent resources:
http://stackoverflow.com/questions/1634268/explain-javascripts-encapsulated-anonymous-function-syntax

@LogicalTime LogicalTime changed the title What do parentheses mean when surrounding some code? Parentheses & Blocks, Function Expressions vs. Function Declarations Apr 7, 2015
@LogicalTime LogicalTime reopened this Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant