dom how to get the child of a div javascript 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 firstChild = parentElement.firstChild;
Code language: JavaScript (javascript)