Identifiers in TypeScript
Identifiers are names given to elements in a program like
variables, functions etc. The rules for identifiers are:
·
Identifiers can include both, characters and digits. However, the identifier
cannot begin with a digit.
· Identifiers cannot
include special symbols except for underscore (_) or a dollar sign ($)
. ·
Identifiers cannot be keywords.
· They
must be unique.
·
Identifiers are case-sensitive
· Identifiers cannot
contain spaces.
Comments
Post a Comment