JavaScript and Camel Case
Historically, programmers have used three ways of joining multiple words into one variable name:
- Hyphens:
first-name, last-name, master-card, inter-city.
- Underscore:
first_name, last_name, master_card, inter_city.
- Camel Case:
FirstName, LastName, MasterCard, InterCity.
In programming languages, especially in JavaScript, camel case often starts with a lowercase letter:
firstName, lastName, masterCard, interCity.
Hyphens are not allowed in JavaScript because they are reserved for subtractions.
JavaScript Character Set
JavaScript uses the Unicode character set. Unicode covers (almost) all the characters, punctuations, and symbols in the world.