globalThis.myVariable = 'Hi, this is your friendly global variable';
globalThis.document.querySelector('body').innerText = globalThis.myVariable;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.