Note: if you want to add a new row to a table, you can use the insertRow() method instead.
deleteRow() Method Syntax:
deleteRow() Method Parameter
The method takes one argument, and that is the index number of the row we want to remove from the target table.
Also, the value 0 means the first row of the table and the value -1 means the last row.
deleteRow() Method Return Value
The method does not return a value.