Last active
April 15, 2021 12:45
-
-
Save wpweb101/940b4e1af011fa8a6de9a005f3368fae to your computer and use it in GitHub Desktop.
JavaScript good spacing example
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
| var example; | |
| if ( condition 1 ) { // use space before and after parenthesis | |
| // write you code here // follow tabbing | |
| } else if( condition 2 ) { | |
| // write you code here | |
| } else { | |
| // write you code here | |
| } | |
| if( ! condition ) { | |
| // write you code here | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment