January 23rd, 2013, 10:46 AM
"The third is to use a variable without declaring it. This is called implied global:
foo = value;
This was intended as a convenience to beginners by making it unnecessary to declare variables before using them. Unfortunately, forgetting to declare a variable is a very
January 23rd, 2013, 11:04 AM
variables outside of any function are global by nature (and should thus be avoided). So Crockford refers to variables in functions.
January 23rd, 2013, 12:09 PM
Originally Posted by Jacques1