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

The **`deviceClass`** read only property of the
{{domxref("USBDevice")}} interface one of three properties that identify USB devices for
the purpose of loading a USB driver that will work with that device. The other two
properties are USBDevice.deviceSubclass and USBDevice.deviceprotocol.

## Syntax

```js
var number = USBDevice.deviceClass
```

### Value

A number.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
