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

Syntax error in the (Advanced) Syntax Question under the Define IIFE section #7

Closed
harumhelmy opened this issue Aug 25, 2019 · 1 comment

Comments

@harumhelmy
Copy link

(function(x){ return x + 2 }()2)

should be

(function(x){ return x + 2 })(2)

The irony! :)

@maxwellbenton
Copy link
Contributor

Hi @harumhelmy,

This typo has been fixed! Thank you for spotting this and providing feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants