Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created August 17, 2010 11:17
Show Gist options
  • Save canonic-epicure/529436 to your computer and use it in GitHub Desktop.
Save canonic-epicure/529436 to your computer and use it in GitHub Desktop.
var a = 1
doSomething1()
if (a) {
var b
doSomething2()
}
// equivalent
var a = 1, b
doSomething1()
if (a) doSomething2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment