helper variable
nounUK /ˈhelpə ˈveəriəbl/
US /ˈhelpər ˈveriəbl/
A helper variable is a little named box that holds a value so it is easier to use later.
The programmer made a helper variable to remember the total score.
RELATED WORDS
OTHER MEANINGS
2. A variable used only to make a calculation or code easier to read.
She stored the sum in a helper variable before printing it.
3. A short-lived variable that holds data between steps of a process.
The helper variable kept the user's name until the form was saved.
4. In math, a letter that stands in for a value to simplify a problem.
He used a helper variable to make the long equation shorter.