Global Variables
Global Variables so you don't have to declare variables you need inside of functions outside of functions.
4
votes
tyly04
shared this idea
-
mbshick commented
Global variables are messy and you can easily get into trouble with them by accidentally changing their values in called functions. In your main code you'll be expecting the value you started with, but you'll actually have a completely different value. Passing values to functions is much better coding practice.