Source

Recent version of modern browsers support for/of iteration on DOM lists.

var list = document.getElementsByClassName("events");
for (let item of list) {
    console.log(item);
}

Older browsers (like IE) need

var list= document.getElementsByClassName("events");
for (var i = 0; i < list.length; i++) {
    console.log(list[i]);
}