The lastElementChild of ParentNode for JS returns the last child that is an element; otherwise null.
element = node.lastElementChild
append
children
firstElementChild
prepend
querySelector
querySelectorAll
replaceChildren
Web Hypertext Application Technology Working Group (WHATWG)