The prepend ParentNode for JS inserts nodes before the first child of the node, while replacing the strings in the nodes with equivalent text nodes.
node.prepend(nodes)
Objects that implement Node. Nodes participate in a tree, which is known as the node tree.
append
children
firstElementChild
lastElementChild
querySelector
querySelectorAll
replaceChildren
Web Hypertext Application Technology Working Group (WHATWG)