Translation guide
A variable that is declared within a function or block and accessible only within that scope. In Japanese, this is typically expressed using the borrowed term ローカル変数 or the native term 局所変数.
A more formal or academic term, sometimes used in textbooks or specifications. Less common in everyday programming conversation.
The scope of a local variable is limited to its block.