diff --git a/doc/api/globals.md b/doc/api/globals.md index 01a6d9327a1669f..1607fdb7db6069a 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -629,6 +629,21 @@ logical processors available to the current Node.js instance. console.log(`This process is running on ${navigator.hardwareConcurrency}`); ``` +### `navigator.userAgent` + + + +* {string} + +The `navigator.userAgent` read-only property returns user agent +consisting of the runtime name and the version. + +```js +console.log(`The user-agent is ${navigator.userAgent}`); +``` + ## `PerformanceEntry`