How do JavaScript’s global variables work?
2ality.com