Get the user agent string reported by the current browser.
The value of navigator.userAgent.
navigator.userAgent
const ua = getUserAgent() Copy
const ua = getUserAgent()
Get the user agent string reported by the current browser.