Skip to main content

Identifier

Definition:
The name given to a variable, method, class, or other element in code.


Detailed Explanation

  • Identifiers are labels programmers use to reference code elements.
  • They must follow naming rules specific to each language (e.g., cannot start with numbers).
  • Good identifiers are descriptive and improve code readability.

Example

// Example of identifiers in a program // let score = 0; // 'score' is the identifier


⬅ Back