1var li = document.querySelector("li");
2var number = 13;
3li.children[0].children[0].innerHTML = number;
1
2
3
4
5 let firstChild = parentElement.firstChild;
6Code language: JavaScript (javascript)
1
2
3
4
5 let lastChild = parentElement.lastElementChild;Code language: JavaScript (javascript)