Effect of declared and undeclared variables
Declared and undeclared global variables The mechanism for storing and accessing them is the same, but JavaScript treats them differently in some cases based on the value of the configurable attribute (described below). In regular usage, they should behave the same. Both exist in the global object Below are some comparisons of declared and undeclared … Read more