What is globalThis, and why should you start using it? Blog

added by JavaScript Kicks
12/3/2019 8:05:28 AM


The JavaScript language is increasingly used in a wide variety of environments. In addition to the web browser, which is the most common type of host environment for JavaScript, you can run JavaScript programs in servers, smartphones, and even robotic hardware. Each environment has its own object model and provides a different syntax to access the global object.