An identifier is simple a name. In real world, we need names for people, things or countries to differentiate one from another. Similarly, we need names for following entities in JavaScript:
In order to be a valid identifier, the identifier should meet following rules:
Here are few examples of valid identifiers:
i
_
$
name
_age
$jQuery
a1234
Following identifiers are not valid:
2ndNumber
%value
Awesome!