insertRow

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

The insertRow() method of the HTMLTableElement interface inserts a new row (tr) in a given table, and returns a reference to the new row.

MDN Reference