my wife she helped me to do " nested loop" even if the lab it doesnt required this part
https://www.w3schools.com/jsref/met_table_deleterow.asp Definition and Usage The deleteRow() method removes the row at the specified index from a table.
Tip: Use the insertRow() to create and insert a new row.