Skip to content

Instantly share code, notes, and snippets.

@bentruyman
Created December 21, 2010 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bentruyman/750264 to your computer and use it in GitHub Desktop.
Save bentruyman/750264 to your computer and use it in GitHub Desktop.
var foo = true
(function bar () {
return false
}())
@deanlandolt
Copy link

// it's not "semicolon-free" but instead "semicolon-minimal" -- part of the rules are that any statement that starts with (, [ or { needs a semicolon prefacing it:

var foo = true

;(function bar () {
return false
}())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment