// Get the platform (operating system)
const osPlatform = navigator.platform;
// Get the user agent string for more details
const userAgent = navigator.userAgent;
console.log("Operating System Platform:", osPlatform);
console.log("User Agent:", userAgent);
/*
run:
Operating System Platform: Linux x86_64
User Agent: Node.js/22
*/