Skip to content

Instantly share code, notes, and snippets.

@GideonBabu
Created January 30, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GideonBabu/5c5a3c15123c02e7ab39ee791748143b to your computer and use it in GitHub Desktop.
Save GideonBabu/5c5a3c15123c02e7ab39ee791748143b to your computer and use it in GitHub Desktop.
JavaScript Best Practices and Naming convention
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