function getTags(elements)
{
const array = []
for (let element in elements)
{
array.push(element)
//console.log(element)
}
return array
}
const childElements = document.querySelector("article").children;
console.log(getTags(childElements))
Paste Hosted With By Wklejamy.pl