get child element getelementbyid code example
Example: how to get child element in javascript
let content = document.getElementById('menu');
let firstChild = content.firstChild.nodeName;
console.log(firstChild);Code language: JavaScript (javascript)