string variable

noun
UK /strɪŋ ˈveəriəbl/
US /strɪŋ ˈveriəbl/

A string variable is a named box in a computer program that holds words or letters.

The programmer used a string variable to store the user's name.


OTHER MEANINGS

2. In coding, a variable that can only hold text characters, not numbers used for math.

You cannot add two string variables together to get a number.

3. A placeholder in a script that gets replaced with a word or phrase when the program runs.

The greeting message used a string variable for the player's nickname.

4. A storage spot for a sequence of letters, digits, and symbols treated as text.

She saved the password in a string variable before checking it.