Skip to content

Instantly share code, notes, and snippets.

@st3v3nhunt
Created March 30, 2011 19:55
Show Gist options
  • Save st3v3nhunt/895163 to your computer and use it in GitHub Desktop.
Save st3v3nhunt/895163 to your computer and use it in GitHub Desktop.
// single quotes over double quotes
// variables
var a, b, c;
var a = 'a',
b = 'b',
c = 'c';
var obj = { key: 'value' }
// functions
function MyFunction () {}
myFunction = function () {}
myFunction()
// control flow
if (true) {
//single line if using curly braces
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment