---
title: USBDevice.deviceVersionMajor
slug: Web/API/USBDevice/deviceVersionMajor
tags:
  - API
  - Property
  - Reference
  - USB
  - USBDevice
  - WebUSB
  - WebUSB API
  - deviceVersionMajor
browser-compat: api.USBDevice.deviceVersionMajor
---
{{SeeCompatTable}}{{APIRef("WebUSB API")}}

The **`deviceVersionMajor`** read only property of the
{{domxref("USBDevice")}} interface he major version number of the device in a semantic
versioning scheme.

## Syntax

```js
var serialNumber = USBDevice.deviceVersionMajor
```

### Value

A number.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
