blockvariable
nounUK /ˈblɒkˌveəriəbl/
US /ˈblɑːkˌveriəbl/
A block variable is a special box in a computer program that holds a value only inside one small part of the code.
The programmer used a block variable so the score would reset each time the loop ran.
OTHER MEANINGS
2. In some programming languages, a variable declared inside a block that cannot be seen outside that block.
Declaring a block variable inside the if-statement keeps it hidden from the rest of the program.
3. A placeholder used in block-based coding tools to store a value within a single stack of blocks.
Drag a block variable into the loop to count how many times it repeats.
4. A variable whose lifetime ends when the block of code finishes running.
Once the function returned, the block variable was gone from memory.