textconstant

noun
UK /ˈtɛkst ˈkɒnstənt/
US /ˈtɛkst ˈkɑːnstənt/

A text constant is a piece of writing in a computer program that never changes.

The programmer stored the greeting as a text constant so it would always say the same thing.


OTHER MEANINGS

2. A named value in code that holds words and cannot be changed while the program runs.

She declared a text constant for the app's title.

3. A fixed piece of text used in a formula or spreadsheet that stays the same.

The label was a text constant in the spreadsheet formula.

4. In some languages, a read-only string declared with a special keyword.

The text constant was marked so the compiler would not let anyone edit it.