I found this answer on the website and used it as a base for my own code.
I was trying to get the buttons to render within the table but it just came up as text and n
Use document.createElement('button') for creating buttons. You are just creating textNodes using createTextNode().
document.createElement('button')
createTextNode()