insertRow

fun insertRow(index: Int = definedExternally): HTMLTableRowElement(source)

The insertRow() method of the HTMLTableSectionElement interface inserts a new row (tr) in the given table sectioning element (thead, tfoot, or tbody), then returns a reference to this new row.

MDN Reference