insertCell

fun insertCell(index: Int = definedExternally): HTMLTableCellElement(source)

Creates a new cell in the table row, and adds the cell to the cells collection.

Parameters

index

Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.

MDN Reference