---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# WorkerLocation.port

The **`port`** property of a [`WorkerLocation`](../../globals/WorkerLocation/WorkerLocation.mdx) object returns the [`port`](../../globals/URL/prototype/port.mdx) part of the worker's location.

## Value

A string.
