O'Reilly logo
  • Nivan Morgan thinks this is interesting:

In top-level code—JavaScript code that is not part of a function—you can use the JavaScript keyword this to refer to the global object:


Cover of JavaScript: The Definitive Guide, 6th Edition


Global object like global variable is used anywhere in the code