How can I make a loop for this collection to get every element? I have tried these methods but they didn't work
const collection = document.getElementsByClassName('fc-daygrid-day-top') the type is an object The First Method
for(let arr of Array(collection)){console.log(Array(collection)[i])} // Doesn't work The second method
var arr = [...collection]; // can't convert to array May you know how to get every element from this object?

querySelectorAll()andforEachand it worked.getElementByClassNamesee this post stackoverflow.com/questions/48888574/…