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.