What is a difference between global variable and persistent variables?
Global variables are accessible outside the function scope; persistent variables are not.
Global variables can be used to cache data in memory; persistent variables cannot.
Global variables remain in memory after clear all; persistent variables do not.
Global variables have a higher performance overhead than persistent variables.