Created
March 21, 2012 15:11
-
-
Save sodastsai/2148182 to your computer and use it in GitHub Desktop.
Indentation
This file contains hidden or 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
| function someFunc() { | |
| // Indent | |
| alert('this is a function'); | |
| if (1) { | |
| // Indent on each '{' | |
| alert('2-level indentation'); | |
| } | |
| alert('function end'); | |
| } | |
| function anotherFunc { | |
| for (var i=0; i<10; i++) | |
| alert("Even if there's no '{', it still need indentation"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment