\[~ann.campbell.2] From the description it seems that each type you declare a variable without the keyword "var" it creates a global variable. Whereas it is only within for-loops and functions that that it creates a global variable.
Maybe it's my understanding of english that it's questionable or I wrongly expressed myself when I first described the rule ?