I\'m trying to set get id of all elements in an HTMLCollectionOf. I wrote the following code:
HTMLCollectionOf
var list = document.getElementsByClassName(\"event
Easy workaround that I always use
let list = document.getElementsByClassName("events"); let listArr = Array.from(list)
After this you can run any desired Array methods on the selection
listArr.map(item => console.log(item.id)) listArr.forEach(item => console.log(item.id)) listArr.reverse()