Created
January 30, 2020 12:48
-
-
Save GideonBabu/5c5a3c15123c02e7ab39ee791748143b to your computer and use it in GitHub Desktop.
JavaScript Best Practices and Naming convention
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
JavaScript variable naming: | |
1. Names can contain letters, digits, underscores, and dollar signs. | |
2. Names must begin with a letter | |
3. Names can also begin with $ and _ (but we will not use it in this tutorial) | |
4. Names are case sensitive (y and Y are different variables) | |
5. Reserved words (like JavaScript keywords) cannot be used as names |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment