Code-Samples/javascript/20.3_scope_code.html

If you assign a value to a variable that has not been declared, it will automatically become a GLOBAL variable: