Each row of my table has a button at the end of the row, which has an addEventListener like this,
button.addEventListener ("click", function() {