createCaption

The HTMLTableElement.createCaption() method returns the caption element associated with a given table.

MDN Reference