Slide 1 / 18
What is an identifier?
An identifier is any name you give to something in your program — a variable, a function, a constant, etc.
Rules:
- Must start with a letter or underscore (
_) - Can contain letters, digits, underscores
- Case-sensitive —
Workandworkare different - Cannot be a reserved keyword
Best practice: use descriptive names. studentAge tells you far more than just x.