js get child number code example
Example 1: get child of child javascript
var li = document.querySelector("li");
var number = 13;
li.children[0].children[0].innerHTML = number;
Example 2: js get node index
Array.from(element.parentNode.children).indexOf(element)
Example 3: Get child node index
Array.from(element.parentNode.children).indexOf(element)