Created
July 30, 2018 23:27
-
-
Save gladchinda/b8567fa242875bb64abeed6bd9738cbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // FIRST FORM: | |
| // Wrap the function expression in parentheses | |
| // The invocation expression comes afterwards | |
| (function(a, b) { | |
| // ...function body here | |
| })(arg1, arg2); | |
| // SECOND FORM: | |
| // Wrap the function expression together with | |
| // the invocation expression in parentheses | |
| (function(a, b) { | |
| // ...function body here | |
| }(arg1, arg2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment