Dynamically modify content added to table via javascript

Figured it out; if you actually store the rowContent as an object property

var content.row1 = "<tr><td>hello</td></tr>";

And then redefine that propertie’s value inside the addRow()function, now not taking any parameters anymore, via simply:

content.row1 = "<tr><td>newContent</td></tr>";

everything works, and subsequent clicks on the +ADD button add “newContent” rows onto the HTML table.