The variable deviation in the subroutine shown in Figure 1 is local to that subroutine.
SUBROUTINE evaluatepH(measuredpH, neutralpH)
deviation ← measuredpH - neutralpH
IF deviation > 1.5 THEN
RETURN "ALKALINE"
ELSEIF deviation < -1.5 THEN
RETURN "ACIDIC"
ELSE
RETURN "NEUTRAL"
ENDIF
ENDSUBROUTINE
Figure 1
State two properties of local variables, such as deviation, that distinguish them from global variables.