Created
March 30, 2011 19:55
-
-
Save st3v3nhunt/895163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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