Untitled
Guest 1,079 14th May, 2022
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))
To share this paste please copy this url and send to your friends
RAW Paste Data