ECMAScript's syntax borrows heavily from C and other C-like languages such as Java and Perl. Developers familiar with such languages should have an easy time picking up the somewhat looser syntax of ECMAScript.
The first concept to understand is that everything is case-sensitive: variables, function names, and operators are all case-sensitive, meaning that a variable named
test is different from a variable named
typeof can't be the name of a function because it's a keyword (described in the next section); however,
typeOf is a perfectly valid function name.
An identifier is the name of a variable, ...