I ran the below code in jsfiddle using chrome browser
console.log(navigator.appCodeName + ' - ' + navigator.appName + ' - ' + navigator.appVersion + ' - ' + navigator.userAgent + ' - ' + navigator.platform);
and got the below result
Mozilla - Netscape - 5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 - Win32
Things are fine except for
navigator.platform // this gave the output as Win32
whereas my OS is 64-bit. When it says platform, the 64 bit OS should indicated it as 64 bit only, but here its different. Can anyone explain ?
Thanks