Java Reference
In-Depth Information
firstName
last_name
address_line1
Variable names are case sensitive, so ANSWER is different to Answer and
answer .
When using multiple words for variable names there are two conventions
that can be used. Camel case starts with a lowercase letter and then each
new word is capitalized:
firstNameAndLastName
Underscore separates each new word with an underscore:
first_name_and_last_name
JavaScript's built-in functions use the camel-case notation, but you can
choose to use one or the other or a combination of the two when naming
variables. What's important for a ninja is to be consistent .
Reserved Words
The following words are reserved for use by the language and cannot be used to name vari-
ables (or the function parameters and object properties that appear in later chapters):
abstract, boolean, break, byte, case, catch, char, class,
const,
continue, debugger, default, delete, do, double, else,
enum,
export, extends, false, final, finally, float, for,
function,
goto, if, implements, import, in instanceof, int,
inteface,
long, native, new, null, package, private, protected,
public,
return, short, static, super, switch, synchronized, this,
throw,
Search WWH ::




Custom Search