Global & Window Objects

globalThis (ES2020)

globalThis.setTimeout(() => console.log("Hello!"), 1000);
globalThis.myVar = 123; // Accessible anywhere globally

Dialogs & User Interaction

alert("Hello, world!");
const isConfirmed = confirm("Are you sure?");
const userInput = prompt("Enter your name:");

Window Control & Utilities