What are some of the problems of “Implied Global variables”?

JavaScript: The Good Parts defines these kinds of declarations as bad:

foo = value;

The book says "JavaScript’s policy of making forgotten variables global creates bugs that can be very difficult to find."

What are some of the problems of these implied global variables other than the usual dangers of typical global variables?

14
задан templatetypedef 5 February 2011 в 20:56
поделиться