throwawayvariable
nounUK /ˈθrəʊəweɪ ˈveəriəbl/
US /ˈθroʊəweɪ ˈveriəbl/
A throwaway variable is a name you use just once and then forget.
The programmer used a throwaway variable to hold the total for a moment.
OTHER MEANINGS
2. A variable used only to receive a value that is never read.
He replaced the throwaway variable with an underscore to show it was unused.
3. A short-lived name created inside a loop or function and discarded after use.
Each iteration made a throwaway variable for the current item.
4. A variable kept only to make code easier to read, not for reuse.
She added a throwaway variable so the long expression was clearer.