2.3.4: understand the need for, and how to use, variables and constants
Keyword | Definition |
---|---|
Assign | to set the value of a variable |
Constant | a data structure which stores a value that is set in code which can be used (but not changed) while the code runs. Usually has a name in CAPITAL_LETTERS |
Declare | to say that a variable exists (usually saying which data type it is going to store) |
Identifier | the name of a variable or constant |
Value | the data stored in a variable or constant |
Variable | a data structure that can store a value that can change whilst the program runs. Usually has a name in snake_case_letters or camelCaseLetters. |