globalThis.myVar = 42 console.log(globalThis.myVar) // β 42
You can store values on globalThis to make them accessible from anywhere in the program.
Access the global isNaN function via globalThis.