Created
November 10, 2018 22:24
-
-
Save HamidOsouli-zz/a3ef308a9432173fe57463a25ef6bced to your computer and use it in GitHub Desktop.
This file contains 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
// There are other ways to enforce a function expression: | |
!function () { /* ... */ }(); | |
~function () { /* ... */ }(); | |
-function () { /* ... */ }(); | |
+function () { /* ... */ }(); | |
void function () { /* ... */ }(); | |
//In contexts where an expression is expected, wrapping in parentheses is not necessary: | |
var f = function () { /* ... */ }(); | |
true && function () { /* ... */ }(); | |
0, function () { /* ... */ }(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment