here is my code below:
the simplest function is document write:
personally, i would go for something a little more sophisticated like using getElementById and then use appendChild to add to this element.
or you could use jquery, which simplify this process. Given the DOM manipulation seems quite small, react and vue would be overkill
then use getElementById and appendChild, you can google to find documentation about these methods (MDN is good)
why do you think i said:
this implied document.write is not very sophisticated method.
I’m definitely gonna try to use getElementByld() and appendChild(). If I hit any roadblocks I’ll post back.
you might need
textContent as well.