// Log direct children of the body const children = document.body.children; console.log("BODY CHILDREN:"); for (let i = 0; i < children.length; i++) { console.log(i, children[i].tagName, children[i].className, children[i].id); }
Privacy Policy
crosschevron-down