// Get the platform (operating system)
const osPlatform: string = navigator.platform;
// Get the user agent string for more details
const userAgent: string = navigator.userAgent;
console.log("Operating System Platform:", osPlatform);
console.log("User Agent:", userAgent);
/*
run:
"Operating System Platform:", "Win32"
"User Agent:", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0"
*/