---
title: length
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/storage/1627448-length
---

# length

The number of key-value pairs currently in the storage list.

## Declaration

```data
readonly attribute int length;
```

```data
readonly attribute unsigned long length;
```

## See Also

### Accessing Key-Value Pair Information

- [clear](tvmljs/storage/1627404-clear.md)
- [getItem](tvmljs/storage/1627333-getitem.md)
- [key](tvmljs/storage/1627380-key.md)
- [removeItem](tvmljs/storage/1627332-removeitem.md)
- [setItem](tvmljs/storage/1627302-setitem.md)
