Go Back

JavaScript Valid Variable Names


The valid variable names can contain letters (both uppercase and lowercase),
numbers, underscores, and dollar signs. However, the variable names can not begin with numbers.

Rules for variable name:

Pascal Case

FirstName
MiddleName
LastName
BirthPlace
BirthDate

Camel Case

mobileNumber
emailAddress
permanentAdress
permanentProvince
permanentMunicipality

Snake Case

user_name
student_id
full_name
car_name
car_brand

With Special Characters

$gender
geek123
_age