Skip to content

Instantly share code, notes, and snippets.

@zsim0n
Created October 13, 2015 18:26
Show Gist options
  • Save zsim0n/d36a60e2e702bb057265 to your computer and use it in GitHub Desktop.
Save zsim0n/d36a60e2e702bb057265 to your computer and use it in GitHub Desktop.
Instant anonymous function call javascript
// 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