- The first character in the name must be an
alphabetic character or an underscore, e.g.,
var npeople; var table(); var _top;
- After this any other characters (but a $) can
be used whether alphabetic, numeric, or an underscore, e.g.,
var _loc10; var cost(2, 5); var face2face;
- JS variable names are case sensitive. The
use of capital letters distinguishes a variable from its non-capitalized counterpart, e.g.,
var god; is different from var God;
- JS reserved words cannot be used
|