an
Size: a a a
an
М
ii
go
ii
И
AP
S
S
j
const collection = document.getElementsByClassName('classname')
for (const elem of collection) {
console.log(elem)
}
for (let i = 0; i < collection.length; i++) {
console.log(collection[i])
}
Array.from(collection).forEach(elem => console.log(elem))
[...collection].forEach(elem => console.log(elem))
S
DB
go
S
S
S
go
go