how to append to the second to last node position in vanilla js code example
Example: appendchild on specific position
parentElement.insertBefore(newElement, parentElement.children[2]);
parentElement.insertBefore(newElement, parentElement.children[2]);