id

external val id: String(source)

The id read-only property of the TextTrack interface returns the ID of the track if it has one.

MDN Reference