js appened to html at index code example
Example 1: javascript append how first element
// 2018+ Version
parentElement.prepend(newFirstChild)
Example 2: javascript appendchild at index
parentElement.insertBefore(newElement, parentElement.children[2]);