Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
No particular character identifies a variable in JavaScript as the dollar sign does in PHP. Instead, variables use the following naming rules:
A variable may include only the letters a-z, A-Z, 0-9, the $ symbol, and the underscore (_).
No other characters such as spaces or punctuation are allowed in a variable name.
The first character of a variable name can be only a-z, A-Z, $, or _ (no numbers).
Names are case-sensitive. Count, count, and COUNT are all different variables.
There is no set limit on variable name lengths.