Completion requirements
View
2. JavaScript Variables
2.3. Naming Variables in JavaScript
Variable names in JavaScript are often referred to as identifiers. Identifiers are a sequence of
characters in a program that identifies a variable, function, or property.
Some key things to note about variables:
- Letters, numbers, a dollar sign ($), and an underscore (_) can be used for a variable name, but it cannot start or begin with a number.
- Any word on a list of reserved keywords as shown through this link https:// www.w3schools.com/js/js_reserved.asp, cannot be a variable
- It is case sensitive.
- The naming convention is camelCase, where a variable always starts in lowercase, but a capitalized letter begins with each subsequent word.