elemen javascript.children.foreach tidak berfungsi

const children = Array.from(document.getElementById(...).children);
DCmax1k