outervariable

noun
UK /ˈaʊtəˌvɛəriəbl/
US /ˈaʊtərˌvɛriəbl/

A variable that lives outside a function or block.

The function reads the outervariable to get the current score.


OTHER MEANINGS

2. In mathematics, a variable defined outside a given expression or equation.

The equation's outervariable was fixed before solving.

3. A value set in an enclosing context that inner code can access.

The loop's outervariable controlled how many times it ran.

4. A variable declared in an outer block that shadows an inner one.

The outervariable was hidden by the inner declaration.