---
title: KeyboardLayoutMap.size
slug: Web/API/KeyboardLayoutMap/size
tags:
  - API
  - Experimental
  - Keyboard API
  - Keyboard Map
  - KeyboardLayoutMap
  - Property
  - Reference
  - keyboard
  - size
browser-compat: api.KeyboardLayoutMap.size
---
{{SeeCompatTable}}{{APIRef("Keyboard API")}}

The **`size`** read-only property of
the {{domxref("KeyboardLayoutMap")}} interface returns the number of elements in the
map.

## Syntax

```js
var size = KeyboardLayoutMap.size()
```

### Value

A number.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
