---
title: pop
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/playlist/1627310-pop
---

# pop

Removes a media item from the end of a playlist.

## Declaration

```data
MediaItem pop();
```

## Return Value

Return Value The MediaItem object located at the end of the playlist. This method returns null if the playlist is empty.

## See Also

### Modifying the Playlist

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