ITerate melalui kelas di JavaScript

var slides = document.getElementsByClassName("slide");
for (var i = 0; i < slides.length; i++) {
   Distribute(slides.item(i));
}
Wide-eyed Walrus