---
title: length
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/playlist/1627327-length
---

# length

The number of items in the playlist.

## Declaration

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

## See Also

### Modifying the Playlist

- [item](tvmljs/playlist/1627377-item.md)
- [Playlist](tvmljs/playlist/1627336-playlist.md)
- [pop](tvmljs/playlist/1627310-pop.md)
- [push](tvmljs/playlist/1627433-push.md)
- [splice](tvmljs/playlist/1627367-splice.md)
