DEV Community

Beto Muniz
Beto Muniz

Posted on • Edited on • Originally published at betomuniz.com

4 2 1 1 1

globalThis in a nutshell

globalThis is a global object reference for client and server applications using JavaScript.

👉 It’s helpful to create cross-platform apps and libraries.

🔒 Due to security, globalThis is a Proxy reference of the global object on the browser.

globalThis.fetch("https://...");
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more