Created
October 13, 2015 18:26
-
-
Save zsim0n/d36a60e2e702bb057265 to your computer and use it in GitHub Desktop.
Instant anonymous function call javascript
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
// http://stackoverflow.com/questions/8583548/calling-a-javascript-anonymous-function-right-when-its-declared-doesnt-work | |
var step = (function(){ | |
// this code is executed immediately, | |
// the return value is assigned to `step` | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment