Feb-24-2018, 06:13 PM
Think of a function as a sort of black box. You give it some data to work with, it does *something*, and then gives you a return value. A function shouldn't use any value that isn't passed to it.
global
should be avoided at all costs.