How do JavaScript’s global variables really work? https://2ality.com/2019/07/global-scope.html …
-
-
Thanks, I added a todo for me. I’ll have to think about how much of this I want to expose to my readers.
-
No need to explain in detail. Simply not calling it “the global object” would make it accurate.
End of conversation
New conversation -
-
-
But I need to mention the term “global object”, because people will encounter it elsewhere (sometimes used correctly, sometimes not).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
NOW I get it. That swapping-out behavior has been niggling at me for years. It was always "something I should look into someday." Now I have to go fix every SO answer where I've written "...the global object (`window` on browsers)..." (Or not, to avoid confusing people...)
-
Can you fix mine too please
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.