What are the Variable Naming Conventions in JavaScript ?

The following rules are to be followed while naming variables in JavaScript..

  • You are not allowed to use any of the reserved keyword as variable name.
  • JavaScript variable names should not begin with a numbers (0-9).
  • They must start with a letter or the underscore character.
  • JavaScript variable names are case sensitive.


You May Interest

JavaScript How To Find The Average Of 10 Numbers Using A While Lo ...

JavaScript Taking the Square Root of a Number

What is Strict Mode in JavaScript ?

What is Namespace in Javascript ?

What are Advantages of Using External Javascript ?