1
I’ll explain:
Assuming I have the following code:
const filho = document.createElement('li')
const text = document.createTextNode('Filho 0')
filho.appendChild(text)
document.getElementById('ul-pai').appendChild(filho)
<ul id="ul-pai">
<li>Filho 1</li>
<li>Filho 2</li>
</ul>
As you can see, he inserts son 0 after son 2.
Assuming I want to insert the same before child 1, that is, at position 0 of the array, this would be possible?