Why do navigator.appVersion and navigator.userAgent return the same results?

Why do both return the same value in the same browser?

Mar.02,2021

appVersion does not have the same value as userAgent .

I compared the properties of navigator in two different browsers on this machine appName , appVersion , appCodeName , userAgent value

Chrome 65:

appName:Netscape
appVersion:5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
appCodeName:Mozilla 
userAgent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Firefox 59:

appName:Netscape
appVersion:5.0 (Macintosh)
appCodeName:Mozilla
userAgent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:59.0) Gecko/20100101 Firefox/59.0

in the Web standard, appVersion indicates the version number of the browser being used, which can be just a numeric value, such as 5.0 .

< hr >

reference:

Previous: Preload animation, remove or hide?

Next: Execute the npm run dev startup project in git and display an error?

Menu