Programming - Concept
Local variable
A variable that can only be used within a limited part of a program
What's it for?
Keeps temporary information contained so unrelated parts of a program cannot accidentally change it.
For example…
A checkout calculation uses a local variable called total that exists only while that calculation is running