---
title: NavigatorUAData.platform
slug: Web/API/NavigatorUAData/platform
tags:
  - API
  - Property
  - Reference
  - platform
  - NavigatorUAData
browser-compat: api.NavigatorUAData.platform
---
{{DefaultAPISidebar("")}}

The **`platform`** read-only property of the {{domxref("NavigatorUAData")}} interface returns the platform brand information.

## Value

A {{domxref("DOMString","string")}} containing the platform brand.
For example, `"Windows"`.

## Examples

The following example prints the value of `platform` to the console.

```js
console.log(navigator.userAgentData.platform);
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
