JavaScript Names and Literals
Names
- Must start with a letter or underscore ("_")
- May include digits (0-9)
- Letters include "A" through "Z" and "a" through "z"
Literals
- Integer: expressed in base 10, 16 or 8. leading 0 for octal, leading 0x for hex.
- Floating Point: can have an integer, decimal point, a fraction,
an exponent and a type suffix.
- Boolean: a true or a false.
- String: characters delimited by double (") or single (') quotes.
Can also use \n,\t,\r,\a,\f,\b.