Skip to content

Instantly share code, notes, and snippets.

@speedsticko
Created October 18, 2012 14:00
Show Gist options
  • Save speedsticko/3911996 to your computer and use it in GitHub Desktop.
Save speedsticko/3911996 to your computer and use it in GitHub Desktop.
Auto-executing closure with anonymous function
(function(){
}());
Why would you do this?
Why are the surrounding braces required?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment