JS Built-ins
globalThisbeginner

globalThis Is the Same Object

πŸ“– Usage Example
globalThis.console.log('hello')  // works in any JS environment

Use globalThis to access global APIs without relying on window or global.

Verify that globalThis refers to itself consistently β€” same reference every time.

πŸ’‘ Hints (1)
  • β€’ globalThis is a single shared object reference