js dom get child of div 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: how to get child element in javascript
let lastChild = parentElement.lastElementChild;Code language: JavaScript (javascript)